Enum cynic::queries::InputLiteral
source · pub enum InputLiteral {
Int(i32),
Float(f64),
Bool(bool),
String(Cow<'static, str>),
Id(String),
Object(Vec<Argument>),
List(Vec<InputLiteral>),
Variable(&'static str),
Null,
EnumValue(&'static str),
}
Expand description
An InputLiteral
is an argument that will be output in the GraphQL
query text (as opposed to a variable that will go in the variables
field)
Variants§
Int(i32)
An integer
Float(f64)
A float
Bool(bool)
A boolean
String(Cow<'static, str>)
A string
Id(String)
An ID
Object(Vec<Argument>)
An object
List(Vec<InputLiteral>)
A list
Variable(&'static str)
A variable
Null
A null
EnumValue(&'static str)
One of the values of an enum
Trait Implementations§
source§impl Debug for InputLiteral
impl Debug for InputLiteral
source§impl Display for InputLiteral
impl Display for InputLiteral
source§impl PartialEq for InputLiteral
impl PartialEq for InputLiteral
source§fn eq(&self, other: &InputLiteral) -> bool
fn eq(&self, other: &InputLiteral) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InputLiteral
Auto Trait Implementations§
impl Freeze for InputLiteral
impl RefUnwindSafe for InputLiteral
impl Send for InputLiteral
impl Sync for InputLiteral
impl Unpin for InputLiteral
impl UnwindSafe for InputLiteral
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more