pub enum DirectiveLocation {
Show 19 variants
Query,
Mutation,
Subscription,
Field,
FragmentDefinition,
FragmentSpread,
InlineFragment,
Schema,
Scalar,
Object,
FieldDefinition,
ArgumentDefinition,
Interface,
Union,
Enum,
EnumValue,
InputObject,
InputFieldDefinition,
VariableDefinition,
}
Expand description
Where a directive can apply to.
Variants§
Query
Mutation
Subscription
Field
A field.
FragmentDefinition
FragmentSpread
InlineFragment
An inline fragment.
Schema
A schema.
Scalar
A scalar.
Object
An object.
FieldDefinition
ArgumentDefinition
An input value definition as the arguments of a field but not an input object.
Interface
An interface.
Union
A union.
Enum
An enum.
EnumValue
InputObject
An input object.
InputFieldDefinition
An input value definition on an input object but not a field.
VariableDefinition
Trait Implementations§
source§impl Clone for DirectiveLocation
impl Clone for DirectiveLocation
source§fn clone(&self) -> DirectiveLocation
fn clone(&self) -> DirectiveLocation
Returns a copy 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 PartialEq for DirectiveLocation
impl PartialEq for DirectiveLocation
source§fn eq(&self, other: &DirectiveLocation) -> bool
fn eq(&self, other: &DirectiveLocation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for DirectiveLocation
impl Eq for DirectiveLocation
impl StructuralEq for DirectiveLocation
impl StructuralPartialEq for DirectiveLocation
Auto Trait Implementations§
impl RefUnwindSafe for DirectiveLocation
impl Send for DirectiveLocation
impl Sync for DirectiveLocation
impl Unpin 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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.