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>
Expand description
The name of the directive.
arguments: Vec<(Positioned<Name>, Positioned<Value>)>
Expand description
The arguments to the directive.
Implementations
impl Directive
[src]
impl Directive
[src]#[must_use]pub fn into_const(self) -> Option<ConstDirective>
[src]
#[must_use]pub fn into_const(self) -> Option<ConstDirective>
[src]Attempt to convert this Directive
into a ConstDirective
.
#[must_use]pub fn get_argument(&self, name: &str) -> Option<&Positioned<Value>>
[src]
#[must_use]pub fn get_argument(&self, name: &str) -> Option<&Positioned<Value>>
[src]Get the argument with the given name.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Directive
impl Send for Directive
impl Sync for Directive
impl Unpin for Directive
impl UnwindSafe for Directive
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more