pub trait Decoder<'a, DecodesTo> {
// Required method
fn decode(&self, value: &Value) -> Result<DecodesTo, DecodeError>;
}Required Methods§
fn decode(&self, value: &Value) -> Result<DecodesTo, DecodeError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".