FromAliasedRow

Trait FromAliasedRow 

Source
pub trait FromAliasedRow {
    // Required method
    fn from_aliased_row(row: &Row) -> Result<Self>
       where Self: Sized + Default;
}
Expand description

Constructs a value from a database row where columns were projected with aliases.

Implementations should read values from row using the composed alias+column format produced by the query builder’s projections.

Required Methods§

Source

fn from_aliased_row(row: &Row) -> Result<Self>
where Self: Sized + Default,

Builds Self from an aliased row.

Implementors§