Trait diesel::types::FromSqlRow [] [src]

pub trait FromSqlRow<A, DB: Backend + HasSqlType<A>>: Sized {
    fn build_from_row<T: Row<DB>>(
        row: &mut T
    ) -> Result<Self, Box<Error + Send + Sync>>; fn fields_needed() -> usize { ... } }

How to deserialize multiple fields, with a known type. This type is implemented for tuples of various sizes.

Required Methods

Provided Methods

The number of fields that this type will consume. Should be equal to the number of times you would call row.take() in build_from_row

Implementors