@@ -16,6 +16,7 @@ public record VariantB(TB Content) : GenericEnum<TA, TB>();
1616
1717
1818public class StructUsingGenericEnum {
19+ [ JsonProperty ( Required = Required . Always ) ]
1920 public GenericEnum < string , short > EnumField { get ; set ; }
2021}
2122
@@ -33,23 +34,29 @@ public record VariantE(GenericEnum<string, uint> Content) : GenericEnumUsingGene
3334
3435/** Generated type representing the anonymous struct variant `VariantF` of the `GenericEnumsUsingStructVariants` Rust enum */
3536public class GenericEnumsUsingStructVariantsVariantFInner < T > {
37+ [ JsonProperty ( Required = Required . Always ) ]
3638 public T Action { get ; set ; }
3739}
3840
3941/** Generated type representing the anonymous struct variant `VariantG` of the `GenericEnumsUsingStructVariants` Rust enum */
4042public class GenericEnumsUsingStructVariantsVariantGInner < T , TU > {
43+ [ JsonProperty ( Required = Required . Always ) ]
4144 public T Action { get ; set ; }
45+ [ JsonProperty ( Required = Required . Always ) ]
4246 public TU Response { get ; set ; }
4347}
4448
4549/** Generated type representing the anonymous struct variant `VariantH` of the `GenericEnumsUsingStructVariants` Rust enum */
4650public class GenericEnumsUsingStructVariantsVariantHInner {
51+ [ JsonProperty ( Required = Required . Always ) ]
4752 public int NonGeneric { get ; set ; }
4853}
4954
5055/** Generated type representing the anonymous struct variant `VariantI` of the `GenericEnumsUsingStructVariants` Rust enum */
5156public class GenericEnumsUsingStructVariantsVariantIInner < T , TU > {
57+ [ JsonProperty ( Required = Required . Always ) ]
5258 public IEnumerable < T > Vec { get ; set ; }
59+ [ JsonProperty ( Required = Required . Always ) ]
5360 public MyType < T , TU > Action { get ; set ; }
5461}
5562
0 commit comments