FromPgRow

Trait FromPgRow 

Source
pub trait FromPgRow: Sized {
    // Required method
    fn from_row(row: &Row) -> PgResult<Self>;
}
Expand description

Trait for deserializing a PostgreSQL row into a type.

Required Methods§

Source

fn from_row(row: &Row) -> PgResult<Self>

Deserialize from a PostgreSQL row.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§