[][src]Enum serde_bser::value::Value

pub enum Value {
    Array(Vec<Value>),
    Object(HashMap<String, Value>),
    ByteString(ByteString),
    Integer(i64),
    Real(f64),
    Bool(bool),
    Null,
    Utf8String(String),
}

The Value type is used in cases where the schema is not known statically. As used in Watchman's protocol, this allows encoding arbitrary metadata that can be passed through the system by eg: the state-enter command, or returned from a saved state storage engine. The values are conceptually equivalent to json values, with the notable difference that BSER can represent a binary byte string value.

Variants

Array(Vec<Value>)
Object(HashMap<String, Value>)
ByteString(ByteString)
Integer(i64)
Real(f64)
Bool(bool)
Null
Utf8String(String)

Trait Implementations

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

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

impl From<bool> for Value[src]

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

impl From<String> for Value[src]

impl From<i64> for Value[src]

impl Clone for Value[src]

impl PartialEq<Value> for Value[src]

impl Debug for Value[src]

impl StructuralPartialEq for Value[src]

impl TryInto<Value> for PathBuf[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryInto<Value> for usize[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl Serialize for Value[src]

impl<'de> Deserialize<'de> for Value[src]

Auto Trait Implementations

impl Send for Value

impl Sync for Value

impl Unpin for Value

impl UnwindSafe for Value

impl RefUnwindSafe for Value

Blanket Implementations

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

impl<T> From<T> for 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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]