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