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 Value
impl FromValue for u8
impl FromValue for u16
impl FromValue for u32
impl FromValue for u64
impl FromValue for usize
impl FromValue for i8
impl FromValue for i16
impl FromValue for i32
impl FromValue for i64
impl FromValue for isize
impl FromValue for f32
impl FromValue for f64
impl FromValue for String
impl FromValue for bool
impl FromValue for File
impl<T: FromValue> FromValue for Option<T>
impl<T: FromValue> FromValue for Vec<T>
impl<T: FromValue> FromValue for BTreeMap<String, T>