Trait mysql::value::FromValue
[−]
[src]
pub trait FromValue {
fn from_value(v: Value) -> Self;
fn from_value_opt(v: Value) -> Result<Self, Value> where Self: Sized;
}Implement this trait to convert value to something.
Required Methods
fn from_value(v: Value) -> Self
Will panic if could not convert v to Self
fn from_value_opt(v: Value) -> Result<Self, Value> where Self: Sized
Will return Err(v) if could not convert v to Self
Implementors
impl FromValue for Valueimpl<T: FromValue> FromValue for Option<T>impl FromValue for i8impl FromValue for u8impl FromValue for i16impl FromValue for u16impl FromValue for i32impl FromValue for u32impl FromValue for isizeimpl FromValue for usizeimpl FromValue for i64impl FromValue for u64impl FromValue for f32impl FromValue for f64impl FromValue for boolimpl FromValue for Vec<u8>impl FromValue for Stringimpl FromValue for Timespecimpl FromValue for SignedDuration