@@ -237,6 +237,8 @@ pub struct SimpleObjectField {
237237 pub complexity : Option < Expr > ,
238238 #[ darling( default , multiple) ]
239239 pub requires_scopes : Vec < String > ,
240+ #[ darling( default ) ]
241+ pub semantic_non_null : Option < bool > ,
240242}
241243
242244#[ derive( FromDeriveInput ) ]
@@ -292,6 +294,8 @@ pub struct SimpleObject {
292294 pub requires_scopes : Vec < String > ,
293295 #[ darling( rename = "crate" ) ]
294296 pub crate_path : Option < Path > ,
297+ #[ darling( default ) ]
298+ pub semantic_non_null : bool ,
295299}
296300
297301#[ derive( FromMeta , Default ) ]
@@ -345,6 +349,8 @@ pub struct Object {
345349 pub requires_scopes : Vec < String > ,
346350 #[ darling( rename = "crate" ) ]
347351 pub crate_path : Option < Path > ,
352+ #[ darling( default ) ]
353+ pub semantic_non_null : bool ,
348354}
349355
350356#[ derive( FromMeta , Default ) ]
@@ -373,6 +379,7 @@ pub struct ObjectField {
373379 pub directives : Vec < Expr > ,
374380 #[ darling( default , multiple) ]
375381 pub requires_scopes : Vec < String > ,
382+ pub semantic_non_null : Option < bool > ,
376383}
377384
378385#[ derive( FromMeta , Default , Clone ) ]
@@ -681,6 +688,8 @@ pub struct InterfaceField {
681688 pub directives : Vec < Expr > ,
682689 #[ darling( default , multiple) ]
683690 pub requires_scopes : Vec < String > ,
691+ #[ darling( default ) ]
692+ pub semantic_non_null : Option < bool > ,
684693}
685694
686695#[ derive( FromVariant ) ]
@@ -719,6 +728,8 @@ pub struct Interface {
719728 pub tags : Vec < String > ,
720729 #[ darling( default , multiple, rename = "directive" ) ]
721730 pub directives : Vec < Expr > ,
731+ #[ darling( default ) ]
732+ pub semantic_non_null : bool ,
722733 // for OneofObject
723734 #[ darling( default ) ]
724735 pub input_name : Option < String > ,
@@ -765,6 +776,7 @@ pub struct Subscription {
765776 pub directives : Vec < Expr > ,
766777 #[ darling( rename = "crate" ) ]
767778 pub crate_path : Option < Path > ,
779+ pub semantic_non_null : bool ,
768780}
769781
770782#[ derive( FromMeta , Default ) ]
@@ -793,6 +805,7 @@ pub struct SubscriptionField {
793805 pub complexity : Option < Expr > ,
794806 #[ darling( default , multiple, rename = "directive" ) ]
795807 pub directives : Vec < Expr > ,
808+ pub semantic_non_null : Option < bool > ,
796809}
797810
798811#[ derive( FromField ) ]
@@ -997,6 +1010,7 @@ pub struct ComplexObject {
9971010 pub guard : Option < Expr > ,
9981011 #[ darling( rename = "crate" ) ]
9991012 pub crate_path : Option < Path > ,
1013+ pub semantic_non_null : bool ,
10001014}
10011015
10021016#[ derive( FromMeta , Default ) ]
@@ -1024,6 +1038,7 @@ pub struct ComplexObjectField {
10241038 pub directives : Vec < Expr > ,
10251039 #[ darling( default , multiple) ]
10261040 pub requires_scopes : Vec < String > ,
1041+ pub semantic_non_null : Option < bool > ,
10271042}
10281043
10291044#[ derive( FromMeta , Default ) ]
0 commit comments