Enum juniper::Value [−][src]
pub enum Value<S = DefaultScalarValue> { Null, Scalar(S), List(Vec<Value<S>>), Object(Object<S>), }
Expand description
Serializable value returned from query and field execution.
Used by the execution engine and resolvers to build up the response
structure. Similar to the Json
type found in the serialize crate.
It is also similar to the InputValue
type, but can not contain enum
values or variables. Also, lists and objects do not contain any location
information since they are generated by resolving fields and values rather
than parsing a source query.
Variants
Object(Object<S>)
Implementations
👎 Deprecated since 0.11.0: Use Value::scalar
instead
Use Value::scalar
instead
Construct an integer value.
👎 Deprecated since 0.11.0: Use Value::scalar
instead
Use Value::scalar
instead
Construct a floating point value.
👎 Deprecated since 0.11.0: Use Value::scalar
instead
Use Value::scalar
instead
Construct a string value.
👎 Deprecated since 0.11.0: Use Value::scalar
instead
Use Value::scalar
instead
Construct a boolean value.
View the underlying scalar value if present
View the underlying float value, if present.
View the underlying object value, if present.
Convert this value into an Object.
Returns None if value is not an Object.
Mutable view into the underlying object value, if present.
View the underlying list value, if present.
View the underlying string value, if present.
Maps the ScalarValue
type of this Value
into the specified one.
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl<S> RefUnwindSafe for Value<S> where
S: RefUnwindSafe,
impl<S> UnwindSafe for Value<S> where
S: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V