Trait ToJSON

Source
pub trait ToJSON {
    // Required method
    fn to_json(&self) -> String;
}
Expand description

A data type that can be converted to a JSON-format string.

Required Methods§

Source

fn to_json(&self) -> String

Implementations on Foreign Types§

Source§

impl ToJSON for &Value

Source§

fn to_json(&self) -> String

Source§

impl ToJSON for Value

Source§

fn to_json(&self) -> String

Source§

impl ToJSON for bool

Source§

fn to_json(&self) -> String

Source§

impl ToJSON for f32

Source§

fn to_json(&self) -> String

Source§

impl ToJSON for f64

Source§

fn to_json(&self) -> String

Source§

impl ToJSON for i8

Source§

fn to_json(&self) -> String

Source§

impl ToJSON for i16

Source§

fn to_json(&self) -> String

Source§

impl ToJSON for i32

Source§

fn to_json(&self) -> String

Source§

impl ToJSON for i64

Source§

fn to_json(&self) -> String

Source§

impl ToJSON for str

Source§

fn to_json(&self) -> String

Source§

impl ToJSON for u8

Source§

fn to_json(&self) -> String

Source§

impl ToJSON for u16

Source§

fn to_json(&self) -> String

Source§

impl ToJSON for u32

Source§

fn to_json(&self) -> String

Source§

impl ToJSON for u64

Source§

fn to_json(&self) -> String

Source§

impl ToJSON for String

Source§

fn to_json(&self) -> String

Source§

impl<'a> ToJSON for &'a str

Source§

fn to_json(&self) -> String

Source§

impl<'a> ToJSON for JSONGetTextValue<'a>

Source§

fn to_json(&self) -> String

Source§

impl<T: ToJSON> ToJSON for Option<T>

Source§

fn to_json(&self) -> String

Implementors§