Enum blot::value::Value[][src]

pub enum Value<T: Multihash> {
    Null,
    Bool(bool),
    Integer(i64),
    Float(f64),
    String(String),
    Timestamp(String),
    Redacted(Seal<T>),
    Raw(Vec<u8>),
    List(Vec<Value<T>>),
    Set(Vec<Value<T>>),
    Dict(HashMap<String, Value<T>>),
}

Variants

Represents a null value (similar to JSON's null).

Represents a boolean.

Represents a signed 64-bit integer.

Represents a 64-bit floating point.

Represents a string.

Represents a RFC3339 timestamp.

Represents a sealed value (i.e. hash resulting of a redacted value).

Represents a raw list of bytes.

Represents a list of values.

Represents a set of values.

Represents an attribute-value dictionary.

Trait Implementations

impl<'de, T: Multihash> Deserialize<'de> for Value<T>
[src]

Deserialize this value from the given Serde deserializer. Read more

impl<T: Clone + Multihash> Clone for Value<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Debug + Multihash> Debug for Value<T>
[src]

Formats the value using the given formatter. Read more

impl<T: PartialEq + Multihash> PartialEq for Value<T>
[src]

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

This method tests for !=.

impl<T: Multihash> Blot for Value<T>
[src]

impl<'a, T: Multihash> From<&'a str> for Value<T>
[src]

Performs the conversion.

impl<'a, T: Multihash> From<String> for Value<T>
[src]

Performs the conversion.

impl<T: Multihash> From<i64> for Value<T>
[src]

Performs the conversion.

impl<T: Multihash> From<f64> for Value<T>
[src]

Performs the conversion.

impl<T: Multihash> From<Vec<Value<T>>> for Value<T>
[src]

Performs the conversion.

impl<T: Multihash> From<Seal<T>> for Value<T>
[src]

Performs the conversion.

Auto Trait Implementations

impl<T> Send for Value<T> where
    T: Send

impl<T> Sync for Value<T> where
    T: Sync