Trait params::FromValue
[−]
[src]
pub trait FromValue: Sized {
fn from_value(value: &Value) -> Option<Self>;
}An interface for converting from Value variants.
Required Methods
fn from_value(value: &Value) -> Option<Self>
Returns Some if the conversion was successful, None otherwise.
Implementors
impl FromValue for Valueimpl FromValue for u8impl FromValue for u16impl FromValue for u32impl FromValue for u64impl FromValue for usizeimpl FromValue for i8impl FromValue for i16impl FromValue for i32impl FromValue for i64impl FromValue for isizeimpl FromValue for f32impl FromValue for f64impl FromValue for Stringimpl FromValue for boolimpl FromValue for Fileimpl<T: FromValue> FromValue for Option<T>impl<T: FromValue> FromValue for Vec<T>impl<T: FromValue> FromValue for BTreeMap<String, T>