pub trait FromValue: Sized {
const EXPECTED: &'static str;
// Required method
fn from_value(value: &Value, index: usize) -> Result<Self, DecodeError>;
}Required Associated Constants§
Required Methods§
fn from_value(value: &Value, index: usize) -> Result<Self, DecodeError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".