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
sourceimpl Clone for DirectiveLocation
impl Clone for DirectiveLocation
sourcefn clone(&self) -> DirectiveLocation
fn clone(&self) -> DirectiveLocation
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for DirectiveLocation
impl Debug for DirectiveLocation
sourceimpl PartialEq<DirectiveLocation> for DirectiveLocation
impl PartialEq<DirectiveLocation> for DirectiveLocation
sourcefn eq(&self, other: &DirectiveLocation) -> bool
fn eq(&self, other: &DirectiveLocation) -> bool
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.