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

Methods

impl DirectiveLocation
[src]

Returns GraphQL syntax compatible name of the directive

Returns true if this location is for queries (execution)

Returns true if this location is for schema

Trait Implementations

impl Debug for DirectiveLocation
[src]

Formats the value using the given formatter. Read more

impl Clone for DirectiveLocation
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for DirectiveLocation
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for DirectiveLocation
[src]

impl Hash for DirectiveLocation
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl FromStr for DirectiveLocation
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

Auto Trait Implementations