pub enum Directive {
Show 20 variants
Authenticated,
CompositeLookup {
graph: SubgraphId,
},
CompositeDerive {
graph: SubgraphId,
},
CompositeRequire {
graph: SubgraphId,
field: StringId,
},
CompositeIs {
graph: SubgraphId,
field: StringId,
},
Deprecated {
reason: Option<StringId>,
},
OneOf,
Inaccessible,
Policy(Vec<Vec<StringId>>),
RequiresScopes(Vec<Vec<StringId>>),
Cost {
weight: i32,
},
JoinGraph(JoinGraphDirective),
JoinField(JoinFieldDirective),
JoinType(JoinTypeDirective),
JoinUnionMember(JoinUnionMemberDirective),
JoinImplements(JoinImplementsDirective),
Authorized(AuthorizedDirective),
Other {
name: StringId,
arguments: Vec<(StringId, Value)>,
},
ListSize(ListSize),
ExtensionDirective(ExtensionDirective),
}
Variants§
Authenticated
CompositeLookup
Fields
§
graph: SubgraphId
CompositeDerive
Fields
§
graph: SubgraphId
CompositeRequire
CompositeIs
Deprecated
OneOf
Inaccessible
Policy(Vec<Vec<StringId>>)
RequiresScopes(Vec<Vec<StringId>>)
Cost
JoinGraph(JoinGraphDirective)
JoinField(JoinFieldDirective)
JoinType(JoinTypeDirective)
JoinUnionMember(JoinUnionMemberDirective)
JoinImplements(JoinImplementsDirective)
Authorized(AuthorizedDirective)
Other
ListSize(ListSize)
ExtensionDirective(ExtensionDirective)
Implementations§
Source§impl Directive
impl Directive
pub fn as_join_field(&self) -> Option<&JoinFieldDirective>
pub fn as_join_field_mut(&mut self) -> Option<&mut JoinFieldDirective>
pub fn as_join_type(&self) -> Option<&JoinTypeDirective>
pub fn as_join_union_member(&self) -> Option<&JoinUnionMemberDirective>
pub fn as_extension_directive(&self) -> Option<&ExtensionDirective>
pub fn as_join_implements(&self) -> Option<&JoinImplementsDirective>
Trait Implementations§
Source§impl From<JoinFieldDirective> for Directive
impl From<JoinFieldDirective> for Directive
Source§fn from(d: JoinFieldDirective) -> Self
fn from(d: JoinFieldDirective) -> Self
Converts to this type from the input type.
Source§impl From<JoinTypeDirective> for Directive
impl From<JoinTypeDirective> for Directive
Source§fn from(d: JoinTypeDirective) -> Self
fn from(d: JoinTypeDirective) -> Self
Converts to this type from the input type.
Source§impl PartialOrd for Directive
impl PartialOrd for Directive
impl StructuralPartialEq for Directive
Auto Trait Implementations§
impl Freeze for Directive
impl RefUnwindSafe for Directive
impl Send for Directive
impl Sync for Directive
impl Unpin for Directive
impl UnwindSafe for Directive
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more