Enum graphql_parser::schema::DirectiveLocation
[−]
[src]
pub enum DirectiveLocation { 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
Methods
impl DirectiveLocation
[src]
fn as_str(&self) -> &'static str
[src]
Returns graphql syntax compatible name of the directive
fn is_query(&self) -> bool
[src]
Returns true if this location is for queries (execution)
fn is_schema(&self) -> bool
[src]
Returns true if this location is for schema
Trait Implementations
impl Debug for DirectiveLocation
[src]
impl Clone for DirectiveLocation
[src]
fn clone(&self) -> DirectiveLocation
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for DirectiveLocation
[src]
fn eq(&self, __arg_0: &DirectiveLocation) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Eq for DirectiveLocation
[src]
impl Hash for DirectiveLocation
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl FromStr for DirectiveLocation
[src]
type Err = InvalidDirectiveLocation
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<DirectiveLocation, InvalidDirectiveLocation>
[src]
Parses a string s
to return a value of this type. Read more