Trait preserves_schema::support::Deserialize
source · pub trait Deserialize<N: NestedValue>where
Self: Sized,{
// Required method
fn deserialize<'de, R: Reader<'de, N>>(
r: &mut R
) -> Result<Self, ParseError>;
}
Expand description
Implementors of Deserialize can produce instances of themselves from a Value. All Schema-compiler-produced types implement Deserialize.
The difference between Deserialize and Parse is that implementors of Deserialize know which language to use.
Required Methods§
fn deserialize<'de, R: Reader<'de, N>>(r: &mut R) -> Result<Self, ParseError>
Object Safety§
This trait is not object safe.