pub trait FromDynamic {
// Required method
fn from_dynamic(
value: &Value,
options: FromDynamicOptions,
) -> Result<Self, Error>
where Self: Sized;
}Expand description
The FromDynamic trait allows a type to construct itself from a Value. This trait can be derived.
Required Methods§
fn from_dynamic(
value: &Value,
options: FromDynamicOptions,
) -> Result<Self, Error>where
Self: Sized,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".