Enum juniper::Value[][src]

pub enum Value {
    Null,
    Int(i32),
    Float(f64),
    String(String),
    Boolean(bool),
    List(Vec<Value>),
    Object(Object),
}

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

Methods

impl Value
[src]

Construct a null value.

Construct an integer value.

Construct a floating point value.

Construct a string value.

Construct a boolean value.

Construct a list value.

Construct an object value.

Does this value represent null?

View the underlying float value, if present.

View the underlying object value, if present.

Mutable view into the underlying object value, if present.

View the underlying list value, if present.

View the underlying string value, if present.

Trait Implementations

impl Debug for Value
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Value
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Clone for Value
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl From<Object> for Value
[src]

Performs the conversion.

impl ToInputValue for Value
[src]

Performs the conversion.

impl<'a> From<&'a str> for Value
[src]

Performs the conversion.

impl From<String> for Value
[src]

Performs the conversion.

impl From<bool> for Value
[src]

Performs the conversion.

impl From<i32> for Value
[src]

Performs the conversion.

impl From<f64> for Value
[src]

Performs the conversion.

impl<T> From<Option<T>> for Value where
    Value: From<T>, 
[src]

Performs the conversion.

impl Serialize for Value
[src]

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

impl Send for Value

impl Sync for Value