pub trait JsonExportable: Serialize + DeserializeOwned {
// Provided methods
fn to_json_value(&self) -> Result<Value> { ... }
fn from_json_value(value: Value) -> Result<Self>
where Self: Sized { ... }
}Provided Methods§
fn to_json_value(&self) -> Result<Value>
fn from_json_value(value: Value) -> Result<Self>where
Self: Sized,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".