pub enum DirectiveLocation {
Show 18 variants
Query,
Mutation,
Subscription,
Field,
FragmentDefinition,
FragmentSpread,
InlineFragment,
Schema,
Scalar,
Object,
FieldDefinition,
ArgumentDefinition,
Interface,
Union,
Enum,
EnumValue,
InputObject,
InputFieldDefinition,
}
Variants
Query
Mutation
Subscription
Field
FragmentDefinition
FragmentSpread
InlineFragment
Schema
Scalar
Object
FieldDefinition
ArgumentDefinition
Interface
Union
Enum
EnumValue
InputObject
InputFieldDefinition
Implementations
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 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DirectiveLocation
impl Debug for DirectiveLocation
sourceimpl FromStr for DirectiveLocation
impl FromStr for DirectiveLocation
type Err = InvalidDirectiveLocation
type Err = InvalidDirectiveLocation
The associated error which can be returned from parsing.
sourcefn from_str(s: &str) -> Result<DirectiveLocation, InvalidDirectiveLocation>
fn from_str(s: &str) -> Result<DirectiveLocation, InvalidDirectiveLocation>
Parses a string s
to return a value of this type. Read more
sourceimpl Hash for DirectiveLocation
impl Hash 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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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