[][src]Enum async_graphql_parser::types::ExecutableDefinition

pub enum ExecutableDefinition {
    Operation(Positioned<OperationDefinition>),
    Fragment(Positioned<FragmentDefinition>),
}

An executable definition in a query; a query, mutation, subscription or fragment definition.

Reference.

Variants

The definition of an operation.

The definition of a fragment.

Implementations

impl ExecutableDefinition[src]

#[must_use]pub fn pos(&self) -> Pos[src]

Get the position of the definition.

#[must_use]pub fn directives(&self) -> &Vec<Positioned<Directive>>[src]

Get a reference to the directives of the definition.

#[must_use]pub fn directives_mut(&mut self) -> &mut Vec<Positioned<Directive>>[src]

Get a mutable reference to the directives of the definition.

Trait Implementations

impl Clone for ExecutableDefinition[src]

impl Debug for ExecutableDefinition[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.