Enum juniper::Value [] [src]

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

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 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.

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 ToInputValue for Value
[src]

Performs the conversion.

impl ToJson for Value
[src]

Converts the value of self to an instance of JSON