pub trait FromValue: Sized {
// Required method
fn from_value(v: Value) -> ClientResult<Self>;
}
Expand description
Any type that can be parsed from a Value
. This is generally meant for use with FromResponse
.
Required Methods§
sourcefn from_value(v: Value) -> ClientResult<Self>
fn from_value(v: Value) -> ClientResult<Self>
Attempt to use the value to create an instance of Self
or throw an error
Object Safety§
This trait is not object safe.