pub enum DirectiveLocation {
Show 19 variants
Query,
Mutation,
Subscription,
Field,
FragmentDefinition,
FragmentSpread,
InlineFragment,
VariableDefinition,
Schema,
Scalar,
Object,
FieldDefinition,
ArgumentDefinition,
Interface,
Union,
Enum,
EnumValue,
InputObject,
InputFieldDefinition,
}Expand description
__DirectiveLocation enum per GraphQL spec §4.1.5.
Variants§
Query
Directive on query operation.
Mutation
Directive on mutation operation.
Subscription
Directive on subscription operation.
Field
Directive on field selection.
FragmentDefinition
Directive on fragment definition.
FragmentSpread
Directive on fragment spread.
InlineFragment
Directive on inline fragment.
VariableDefinition
Directive on variable definition.
Schema
Directive on schema definition.
Scalar
Directive on scalar type definition.
Object
Directive on object type definition.
FieldDefinition
Directive on field definition.
ArgumentDefinition
Directive on argument definition.
Interface
Directive on interface definition.
Union
Directive on union definition.
Enum
Directive on enum definition.
EnumValue
Directive on enum value definition.
InputObject
Directive on input object definition.
InputFieldDefinition
Directive on input field definition.
Trait Implementations§
Source§impl Clone for DirectiveLocation
impl Clone for DirectiveLocation
Source§fn clone(&self) -> DirectiveLocation
fn clone(&self) -> DirectiveLocation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DirectiveLocation
impl Debug for DirectiveLocation
Source§impl<'de> Deserialize<'de> for DirectiveLocation
impl<'de> Deserialize<'de> for DirectiveLocation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<DirectiveLocationKind> for DirectiveLocation
impl From<DirectiveLocationKind> for DirectiveLocation
Source§fn from(kind: DirectiveLocationKind) -> Self
fn from(kind: DirectiveLocationKind) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DirectiveLocation
impl PartialEq for DirectiveLocation
Source§impl Serialize for DirectiveLocation
impl Serialize for DirectiveLocation
impl Copy for DirectiveLocation
impl Eq for DirectiveLocation
impl StructuralPartialEq for DirectiveLocation
Auto Trait Implementations§
impl Freeze for DirectiveLocation
impl RefUnwindSafe for DirectiveLocation
impl Send for DirectiveLocation
impl Sync for DirectiveLocation
impl Unpin for DirectiveLocation
impl UnsafeUnpin for DirectiveLocation
impl UnwindSafe for DirectiveLocation
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.