[−][src]Enum serde_bser::value::Value
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
ByteString(ByteString)
Integer(i64)
Real(f64)
Bool(bool)
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.
fn try_into(self) -> Result<Value, Self::Error>
[src]
impl TryInto<Value> for usize
[src]
type Error = &'static str
The type returned in the event of a conversion error.
fn try_into(self) -> Result<Value, Self::Error>
[src]
impl Serialize for Value
[src]
impl<'de> Deserialize<'de> for Value
[src]
fn deserialize<D>(deserializer: D) -> Result<Value, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
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]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,