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§
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 FromStr for DirectiveLocation
impl FromStr for DirectiveLocation
Source§type Err = InvalidDirectiveLocation
type Err = InvalidDirectiveLocation
The associated error which can be returned from parsing.
Source§fn 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 moreSource§impl Hash for DirectiveLocation
impl Hash for DirectiveLocation
Source§impl PartialEq for DirectiveLocation
impl PartialEq 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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more