pub trait ToJson {
// Required method
fn to_json_string(&self) -> String;
}Expand description
Trait that converts a type to a JSON string.
json_proc provides a macro that derives this trait.
Required Methods§
sourcefn to_json_string(&self) -> String
fn to_json_string(&self) -> String
Converts self to a JSON string.
Implementations of this should not fail.