[][src]Enum rs_es::units::JsonVal

pub enum JsonVal {
    String(String),
    Number(Number),
    Boolean(bool),
}

A Json value that's not a structural thing - i.e. just String, i64 and f64, no array or object

Variants

String(String)
Number(Number)
Boolean(bool)

Methods

impl JsonVal[src]

pub fn from(from: &Value) -> Result<Self, EsError>[src]

Trait Implementations

impl Debug for JsonVal[src]

impl Default for JsonVal[src]

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

impl<'a> From<&'a Value> for JsonVal[src]

impl<'a> From<&'a str> for JsonVal[src]

impl From<String> for JsonVal[src]

impl From<bool> for JsonVal[src]

impl From<f32> for JsonVal[src]

impl From<f64> for JsonVal[src]

impl From<i32> for JsonVal[src]

impl From<i64> for JsonVal[src]

impl From<u32> for JsonVal[src]

impl From<u64> for JsonVal[src]

impl Serialize for JsonVal[src]

Auto Trait Implementations

impl RefUnwindSafe for JsonVal

impl Send for JsonVal

impl Sync for JsonVal

impl Unpin for JsonVal

impl UnwindSafe for JsonVal

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> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

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

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

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, U> TryInto<U> for T where
    U: TryFrom<T>, 

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