pub trait Json {
// Required methods
fn to_json(&self) -> Value;
fn from_json(value: &Value) -> Result<Self, Error>
where Self: Sized;
// Provided methods
fn to_json_string(&self) -> String { ... }
fn from_json_string(string: &str) -> Result<Self, Error>
where Self: Sized { ... }
}Expand description
Trait that lbf-prelude::json class maps to