Enum apollo_encoder::Value
source · [−]pub enum Value {
Variable(String),
Int(i32),
Float(f64),
String(String),
Boolean(bool),
Null,
Enum(String),
List(Vec<Value>),
Object(Vec<(String, Value)>),
}
Expand description
The Value type represents available values you could give as an input.
Value: Variable | IntValue | FloatValue | StringValue | BooleanValue | NullValue | EnumValue | ListValue | ObjectValue
Detailed documentation can be found in GraphQL spec.
Variants
Variable(String)
Name of a variable example: varName
Int(i32)
Int value example: 7
Float(f64)
Float value example: 25.4
String(String)
String value example: "My string"
Boolean(bool)
Boolean value example: false
Null
Null value example: null
Enum(String)
Enum value example: "VARIANT_EXAMPLE"
List(Vec<Value>)
List value example: [1, 2, 3]
Object(Vec<(String, Value)>)
Object value example: { first: 1, second: 2 }
Trait Implementations
impl StructuralPartialEq for Value
Auto Trait Implementations
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more