[−][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][−]
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][+]
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,
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,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,