Struct async_graphql_parser::types::ConstDirective [−][src]
pub struct ConstDirective {
pub name: Positioned<Name>,
pub arguments: Vec<(Positioned<Name>, Positioned<ConstValue>)>,
}Expand description
A const GraphQL directive, such as @deprecated(reason: "Use the other field). This differs
from Directive in that it uses ConstValue
instead of Value.
Fields
name: Positioned<Name>The name of the directive.
arguments: Vec<(Positioned<Name>, Positioned<ConstValue>)>The arguments to the directive.
Implementations
Convert this ConstDirective into a Directive.
Get the argument with the given name.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ConstDirectiveimpl Send for ConstDirectiveimpl Sync for ConstDirectiveimpl Unpin for ConstDirectiveimpl UnwindSafe for ConstDirectiveBlanket Implementations
Mutably borrows from an owned value. Read more