Struct async_graphql_parser::types::Directive [−][src]
pub struct Directive {
pub name: Positioned<Name>,
pub arguments: Vec<(Positioned<Name>, Positioned<Value>)>,
}Expand description
A GraphQL directive, such as @deprecated(reason: "Use the other field").
Fields
name: Positioned<Name>The name of the directive.
arguments: Vec<(Positioned<Name>, Positioned<Value>)>The arguments to the directive.
Implementations
Attempt to convert this Directive into a ConstDirective.
Get the argument with the given name.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Directive
impl UnwindSafe for Directive
Blanket Implementations
Mutably borrows from an owned value. Read more