Trait rorm_db::row::FromRow

source ·
pub trait FromRow: Sized {
    // Required methods
    fn from_row(row: Row) -> Result<Self, Error>;
    fn from_row_using_position(row: Row) -> Result<Self, Error>;
}
Expand description

Something which can be decoded from a Row.

Auto-implemented for tuples of size 8 or less.

Required Methods§

source

fn from_row(row: Row) -> Result<Self, Error>

Try decoding a Row into Self.

source

fn from_row_using_position(row: Row) -> Result<Self, Error>

A version of from_row which uses the columns positions instead of names. This is a work-around until mariaDB is fixed.

Implementations on Foreign Types§

source§

impl<A, B, C, D, E> FromRow for (A, B, C, D, E)where A: DecodeOwned, B: DecodeOwned, C: DecodeOwned, D: DecodeOwned, E: DecodeOwned,

source§

impl<A, B, C> FromRow for (A, B, C)where A: DecodeOwned, B: DecodeOwned, C: DecodeOwned,

source§

impl<A, B> FromRow for (A, B)where A: DecodeOwned, B: DecodeOwned,

source§

impl<A, B, C, D> FromRow for (A, B, C, D)where A: DecodeOwned, B: DecodeOwned, C: DecodeOwned, D: DecodeOwned,

source§

impl<A, B, C, D, E, F, G> FromRow for (A, B, C, D, E, F, G)where A: DecodeOwned, B: DecodeOwned, C: DecodeOwned, D: DecodeOwned, E: DecodeOwned, F: DecodeOwned, G: DecodeOwned,

source§

impl<A, B, C, D, E, F, G, H> FromRow for (A, B, C, D, E, F, G, H)where A: DecodeOwned, B: DecodeOwned, C: DecodeOwned, D: DecodeOwned, E: DecodeOwned, F: DecodeOwned, G: DecodeOwned, H: DecodeOwned,

source§

impl<A, B, C, D, E, F> FromRow for (A, B, C, D, E, F)where A: DecodeOwned, B: DecodeOwned, C: DecodeOwned, D: DecodeOwned, E: DecodeOwned, F: DecodeOwned,

source§

impl<A> FromRow for (A,)where A: DecodeOwned,

Implementors§