pub trait Deserialize<'de>: Sized {
// Required method
fn deserialize(value: &mut Value<'de>) -> Result<Self, DeserError>;
}
Expand description
This crate’s equivalent to serde::Deserialize
Required Methods§
Sourcefn deserialize(value: &mut Value<'de>) -> Result<Self, DeserError>
fn deserialize(value: &mut Value<'de>) -> Result<Self, DeserError>
Given a mutable Value
, allows you to deserialize the type from it,
or accumulate 1 or more errors
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.