pub trait FromValue {
// Required method
fn from_value(v: Value) -> Result<Self>
where Self: Sized;
// Provided method
fn get(v: Value) -> Option<Self>
where Self: Sized { ... }
}
Required Methods§
Sourcefn from_value(v: Value) -> Result<Self>where
Self: Sized,
fn from_value(v: Value) -> Result<Self>where
Self: Sized,
attempt to cast v to the type of self using any reasonable means