ToJsonValue

Trait ToJsonValue 

Source
pub trait ToJsonValue {
    // Required method
    fn to_json_value(&self) -> JsonValue;
}
Expand description

A trait defines as the format to get data from the instance.

Required Methods§

Implementations on Foreign Types§

Source§

impl ToJsonValue for bool

Source§

impl ToJsonValue for f32

Source§

impl ToJsonValue for f64

Source§

impl ToJsonValue for i8

Source§

impl ToJsonValue for i16

Source§

impl ToJsonValue for i32

Source§

impl ToJsonValue for i64

Source§

impl ToJsonValue for i128

Source§

impl ToJsonValue for isize

Source§

impl ToJsonValue for u8

Source§

impl ToJsonValue for u16

Source§

impl ToJsonValue for u32

Source§

impl ToJsonValue for u64

Source§

impl ToJsonValue for u128

Source§

impl ToJsonValue for ()

Source§

impl ToJsonValue for usize

Source§

impl ToJsonValue for String

Source§

impl<T: ToJsonValue> ToJsonValue for Option<T>

Source§

impl<T: ToJsonValue> ToJsonValue for Box<T>

Source§

impl<T: ToJsonValue> ToJsonValue for Vec<T>

Implementors§