Trait toml_span::Deserialize
source · 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
Object Safety§
This trait is not object safe.