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 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
impl FromValue for SignedDuration