Trait mysql::value::FromRow [] [src]

pub trait FromRow {
    fn from_row(row: Vec<Value>) -> Self;
    fn from_row_opt(row: Vec<Value>) -> Result<Self, Vec<Value>> where Self: Sized;
}

Trait to convert Vec<Value> into tuple of FromValue implementors up to arity 12.

Required Methods

fn from_row(row: Vec<Value>) -> Self

Will panic if could not convert row to Self.

fn from_row_opt(row: Vec<Value>) -> Result<Self, Vec<Value>> where Self: Sized

Will return Err(row) if could not convert row to Self

Implementors