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

pub enum JsonVal {
    String(String),
    I64(i64),
    U64(u64),
    F64(f64),
    Boolean(bool),
}

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

Variants

Methods

impl JsonVal
[src]

Trait Implementations

impl Debug for JsonVal
[src]

Formats the value using the given formatter.

impl Default for JsonVal
[src]

Returns the "default value" for a type. Read more

impl Serialize for JsonVal
[src]

Serializes this value into this serializer.

impl Deserialize for JsonVal
[src]

Deserialize this value given this Deserializer.

impl From<String> for JsonVal
[src]

Performs the conversion.

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

Performs the conversion.

impl From<f32> for JsonVal
[src]

Performs the conversion.

impl From<f64> for JsonVal
[src]

Performs the conversion.

impl From<i32> for JsonVal
[src]

Performs the conversion.

impl From<i64> for JsonVal
[src]

Performs the conversion.

impl From<u32> for JsonVal
[src]

Performs the conversion.

impl From<u64> for JsonVal
[src]

Performs the conversion.

impl From<bool> for JsonVal
[src]

Performs the conversion.

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

Performs the conversion.