pub enum DirectiveLocation {
Show 19 variants
Query,
Mutation,
Subscription,
Field,
FragmentDefinition,
FragmentSpread,
InlineFragment,
VariableDefinition,
Schema,
Scalar,
Object,
FieldDefinition,
ArgumentDefinition,
Interface,
Union,
Enum,
EnumValue,
InputObject,
InputFieldDefinition,
}Variants§
Query
Mutation
Subscription
Field
FragmentDefinition
FragmentSpread
InlineFragment
VariableDefinition
Schema
Scalar
Object
FieldDefinition
ArgumentDefinition
Interface
Union
Enum
EnumValue
InputObject
InputFieldDefinition
Implementations§
Source§impl DirectiveLocation
impl DirectiveLocation
pub const POSSIBLE_VALUES: &'static [&'static str] = Self::VARIANTS
pub fn is_executable(&self) -> bool
Trait Implementations§
Source§impl AsRef<str> for DirectiveLocation
impl AsRef<str> for DirectiveLocation
Source§impl Clone for DirectiveLocation
impl Clone for DirectiveLocation
Source§fn clone(&self) -> DirectiveLocation
fn clone(&self) -> DirectiveLocation
Returns a duplicate 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 Display for DirectiveLocation
impl Display for DirectiveLocation
Source§impl FromStr for DirectiveLocation
impl FromStr for DirectiveLocation
Source§impl IntoEnumIterator for DirectiveLocation
impl IntoEnumIterator for DirectiveLocation
Source§impl PartialEq for DirectiveLocation
impl PartialEq for DirectiveLocation
Source§impl TryFrom<&str> for DirectiveLocation
impl TryFrom<&str> for DirectiveLocation
Source§impl VariantNames for DirectiveLocation
impl VariantNames 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§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