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]

[src]

Returns graphql syntax compatible name of the directive

[src]

Returns true if this location is for queries (execution)

[src]

Returns true if this location is for schema

Trait Implementations

impl Debug for DirectiveLocation
[src]

[src]

Formats the value using the given formatter.

impl Clone for DirectiveLocation
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for DirectiveLocation
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl Eq for DirectiveLocation
[src]

impl Hash for DirectiveLocation
[src]

[src]

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

1.3.0
[src]

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.

[src]

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