pub trait ToJson {
// Required method
fn to_json(&self) -> String;
}
Expand description
ToJson is a trait that allows any conforming structs to convert to a JSON format.
A default implemenation is most easily obtained by deriving this trait.