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
String(String)
I64(i64)
U64(u64)
F64(f64)
Boolean(bool)
Methods
impl JsonVal
[src]
Trait Implementations
impl Debug for JsonVal
[src]
impl Default for JsonVal
[src]
impl Serialize for JsonVal
[src]
fn serialize<S>(&self, serializer: &mut S) -> Result<(), S::Error> where S: Serializer
Serializes this value into this serializer.
impl Deserialize for JsonVal
[src]
fn deserialize<D>(deserializer: &mut D) -> Result<JsonVal, D::Error> where D: Deserializer
Deserialize this value given this Deserializer
.
impl From<String> for JsonVal
[src]
impl<'a> From<&'a str> 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 From<bool> for JsonVal
[src]
impl<'a> From<&'a Value> for JsonVal
[src]
fn from(from: &'a Value) -> Self
Performs the conversion.