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