Trait sqlm_postgres::FromRow

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

A trait for types that can be created from a Row (a postgres row containing columns as constraint by Cols).

This is usually derived via FromRow and not implemented manually.

Required Methods§

source

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

Object Safety§

This trait is not object safe.

Implementors§