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 ConstDirective
impl Send for ConstDirective
impl Sync for ConstDirective
impl Unpin for ConstDirective
impl UnwindSafe for ConstDirective
Blanket Implementations
Mutably borrows from an owned value. Read more