pub trait DeserializeJson<'a>: Deserialize<'a> {
// Provided methods
fn from_json_str(s: &'a str) -> Result<Self, Error> { ... }
fn from_json_slice(v: &'a [u8]) -> Result<Self, Error> { ... }
}
Provided Methods§
fn from_json_str(s: &'a str) -> Result<Self, Error>
fn from_json_slice(v: &'a [u8]) -> Result<Self, Error>
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.