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.6.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
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 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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.