Enum graphql_parser::schema::DirectiveLocation
source · 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
§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<DirectiveLocation> for DirectiveLocation
impl PartialEq<DirectiveLocation> for DirectiveLocation
source§fn eq(&self, other: &DirectiveLocation) -> bool
fn eq(&self, other: &DirectiveLocation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.