[][src]Trait sprattus::FromSql

pub trait FromSql {
    fn from_row(row: &Row) -> Result<Self, Error>
    where
        Self: Sized
; }

Arranges deserialization from Postgres table values to a Rust struct.

Required methods

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

Implementors of this method create an instance of Self with the content of a Row.

Loading content...

Implementors

Loading content...