[][src]Enum warpgrapher::engine::value::Value

pub enum Value {
    Array(Vec<Value>),
    Bool(bool),
    Float64(f64),
    Int64(i64),
    Map(HashMap<String, Value>),
    Null,
    String(String),
    UInt64(u64),
    Uuid(Uuid),
}

Intermediate data structure for serialized values, allowing for translation between the values returned by the back-end database (serde_json for Neo4j, and a library-specific seralized format for Cosmos and Gremlin DBs), and the serde_json format used to return data to the client.

Examples


let v = Value::Bool(true);

Variants

Array(Vec<Value>)
Bool(bool)
Float64(f64)
Int64(i64)
Null
String(String)
UInt64(u64)
Uuid(Uuid)

Trait Implementations

impl Clone for Value[src]

impl Debug for Value[src]

impl From<HashMap<String, Value, RandomState>> for Value[src]

impl From<String> for Value[src]

impl From<Uuid> for Value[src]

impl From<Vec<Value>> for Value[src]

impl From<bool> for Value[src]

impl From<f64> for Value[src]

impl From<i64> for Value[src]

impl From<u64> for Value[src]

impl FromInputValue<DefaultScalarValue> for Value[src]

impl PartialEq<Value> for Value[src]

impl TryFrom<Value> for Value[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Value> for bool[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Value> for f64[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Value> for i32[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Value> for String[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Value> for Value[src]

type Error = Error

The type returned in the event of a conversion error.

impl<T> TryFrom<Value> for Vec<T> where
    T: TryFrom<Value, Error = Error>, 
[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Value> for HashMap<String, Value>[src]

type Error = Error

The type returned in the event of a conversion error.

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,