[][src]Struct async_graphql_parser::types::OperationDefinition

pub struct OperationDefinition {
    pub ty: OperationType,
    pub variable_definitions: Vec<Positioned<VariableDefinition>>,
    pub directives: Vec<Positioned<Directive>>,
    pub selection_set: Positioned<SelectionSet>,
}

A GraphQL operation, such as mutation($content:String!) { makePost(content: $content) { id } }.

Reference.

Fields

ty: OperationType

The type of operation.

variable_definitions: Vec<Positioned<VariableDefinition>>

The variable definitions.

directives: Vec<Positioned<Directive>>

The operation's directives.

selection_set: Positioned<SelectionSet>

The operation's selection set.

Trait Implementations

impl Clone for OperationDefinition[src]

impl Debug for OperationDefinition[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.