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<InputLiteral> for InputLiteral
impl PartialEq<InputLiteral> 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 ==
.