[−][src]Struct async_graphql_parser::types::VariableDefinition
A variable definition inside a list of variable definitions, for example $name:String!
.
Fields
name: Positioned<Name>
The name of the variable, without the preceding $
.
var_type: Positioned<Type>
The type of the variable.
default_value: Option<Positioned<ConstValue>>
The optional default value of the variable.
Implementations
impl VariableDefinition
[src]
#[must_use]pub fn default_value(&self) -> Option<&ConstValue>
[src]
Get the default value of the variable; this is default_value
if it is present,
Value::Null
if it is nullable and None
otherwise.
Trait Implementations
impl Clone for VariableDefinition
[src]
fn clone(&self) -> VariableDefinition
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for VariableDefinition
[src]
Auto Trait Implementations
impl RefUnwindSafe for VariableDefinition
impl Send for VariableDefinition
impl Sync for VariableDefinition
impl Unpin for VariableDefinition
impl UnwindSafe for VariableDefinition
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,