@@ -16,6 +16,7 @@ public record VariantB(TB Content) : GenericEnum<TA, TB>();
16
16
17
17
18
18
public class StructUsingGenericEnum {
19
+ [ JsonProperty ( Required = Required . Always ) ]
19
20
public GenericEnum < string , short > EnumField { get ; set ; }
20
21
}
21
22
@@ -33,23 +34,29 @@ public record VariantE(GenericEnum<string, uint> Content) : GenericEnumUsingGene
33
34
34
35
/** Generated type representing the anonymous struct variant `VariantF` of the `GenericEnumsUsingStructVariants` Rust enum */
35
36
public class GenericEnumsUsingStructVariantsVariantFInner < T > {
37
+ [ JsonProperty ( Required = Required . Always ) ]
36
38
public T Action { get ; set ; }
37
39
}
38
40
39
41
/** Generated type representing the anonymous struct variant `VariantG` of the `GenericEnumsUsingStructVariants` Rust enum */
40
42
public class GenericEnumsUsingStructVariantsVariantGInner < T , TU > {
43
+ [ JsonProperty ( Required = Required . Always ) ]
41
44
public T Action { get ; set ; }
45
+ [ JsonProperty ( Required = Required . Always ) ]
42
46
public TU Response { get ; set ; }
43
47
}
44
48
45
49
/** Generated type representing the anonymous struct variant `VariantH` of the `GenericEnumsUsingStructVariants` Rust enum */
46
50
public class GenericEnumsUsingStructVariantsVariantHInner {
51
+ [ JsonProperty ( Required = Required . Always ) ]
47
52
public int NonGeneric { get ; set ; }
48
53
}
49
54
50
55
/** Generated type representing the anonymous struct variant `VariantI` of the `GenericEnumsUsingStructVariants` Rust enum */
51
56
public class GenericEnumsUsingStructVariantsVariantIInner < T , TU > {
57
+ [ JsonProperty ( Required = Required . Always ) ]
52
58
public IEnumerable < T > Vec { get ; set ; }
59
+ [ JsonProperty ( Required = Required . Always ) ]
53
60
public MyType < T , TU > Action { get ; set ; }
54
61
}
55
62
0 commit comments