Skip to main content

FromRow

Trait FromRow 

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

A type that can be built from a Row.

Implemented for scalars, tuples, arrays, and — via #[derive(postgresql::FromRow)] — structs with named fields.

Required Methods§

Source

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

Builds a value from a row.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl FromRow for DateTime

Source§

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

Source§

impl FromRow for IpNetwork

Source§

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

Source§

impl FromRow for String

Source§

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

Source§

impl FromRow for Uuid

Source§

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

Source§

impl FromRow for Value

Source§

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

Source§

impl FromRow for Vec<u8>

Source§

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

Source§

impl FromRow for bool

Source§

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

Source§

impl FromRow for f32

Source§

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

Source§

impl FromRow for f64

Source§

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

Source§

impl FromRow for i16

Source§

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

Source§

impl FromRow for i32

Source§

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

Source§

impl FromRow for i64

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl<A: FromSql, B: FromSql> FromRow for (A, B)

Source§

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

Source§

impl<A: FromSql> FromRow for (A,)

Source§

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

Source§

impl<T: FromSql> FromRow for Option<T>

Source§

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

Source§

impl<T: FromSql> FromRow for Vec<T>

Source§

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

Implementors§