pub trait DIFConvertible: Serialize + for<'de> Deserialize<'de> {
// Provided methods
fn to_json(self) -> String { ... }
fn to_json_pretty(self) -> String { ... }
fn from_json(json: &str) -> Self { ... }
fn as_json(&self) -> String { ... }
fn as_json_pretty(&self) -> String { ... }
}Provided Methods§
fn to_json(self) -> String
fn to_json_pretty(self) -> String
fn from_json(json: &str) -> Self
fn as_json(&self) -> String
fn as_json_pretty(&self) -> String
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.