Trait mysql::value::FromValue
[−]
[src]
pub trait FromValue {
fn from_value(v: Value) -> Self;
fn from_value_opt(v: Value) -> Option<Self>;
}Implement this trait to convert value to something.
Required Methods
fn from_value(v: Value) -> Self
Will panic if could not retrieve Self from Value
fn from_value_opt(v: Value) -> Option<Self>
Will return None if coluld not retrieve Self from Value
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 Timespec