Struct async_graphql_parser::types::OperationDefinition [−][src]
pub struct OperationDefinition {
pub ty: OperationType,
pub variable_definitions: Vec<Positioned<VariableDefinition>>,
pub directives: Vec<Positioned<Directive>>,
pub selection_set: Positioned<SelectionSet>,
}
Expand description
A GraphQL operation, such as mutation($content:String!) { makePost(content: $content) { id } }
.
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
Auto Trait Implementations
impl RefUnwindSafe for OperationDefinition
impl Send for OperationDefinition
impl Sync for OperationDefinition
impl Unpin for OperationDefinition
impl UnwindSafe for OperationDefinition
Blanket Implementations
Mutably borrows from an owned value. Read more