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>
Expand description
The name of the directive.
arguments: Vec<(Positioned<Name>, Positioned<ConstValue>)>
Expand description
The arguments to the directive.
Implementations
impl ConstDirective
[src]
impl ConstDirective
[src]#[must_use]pub fn into_directive(self) -> Directive
[src]
#[must_use]pub fn into_directive(self) -> Directive
[src]Convert this ConstDirective
into a Directive
.
#[must_use]pub fn get_argument(&self, name: &str) -> Option<&Positioned<ConstValue>>
[src]
#[must_use]pub fn get_argument(&self, name: &str) -> Option<&Positioned<ConstValue>>
[src]Get the argument with the given name.
Trait Implementations
impl Clone for ConstDirective
[src]
impl Clone for ConstDirective
[src]fn clone(&self) -> ConstDirective
[src]
fn clone(&self) -> ConstDirective
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
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
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