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§