pub trait FromValue<'a>: Sized {
// Required method
fn from_value(value: &'a Value) -> Option<Self>;
}Expand description
Attempt to unwrap or parse Self from a referenced Value.
Required Methods§
Sourcefn from_value(value: &'a Value) -> Option<Self>
fn from_value(value: &'a Value) -> Option<Self>
Attempts to perform the conversion, returning None if the given value
can not be used to produce Self.
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.