pub struct Record<T>(pub T);
Expand description
A wrapper for tuples that implements FromSql
for PostgreSQL composite
types.
Formats the value using the given formatter. Read more
Creates a new value of this type from a buffer of data of the specified
Postgres Type
in its binary format. Read more
Determines if a value of this type can be created from the specified
Postgres Type
. Read more
Creates a new value of this type from a NULL
SQL value. Read more
A convenience function that delegates to from_sql
and from_sql_null
depending on the
value of raw
. Read more
Creates a new value of this type from a buffer of data of the specified
Postgres Type
in its binary format. Read more
Determines if a value of this type can be created from the specified
Postgres Type
. Read more
Creates a new value of this type from a NULL
SQL value. Read more
A convenience function that delegates to from_sql
and from_sql_null
depending on the
value of raw
. Read more
Creates a new value of this type from a buffer of data of the specified
Postgres Type
in its binary format. Read more
Determines if a value of this type can be created from the specified
Postgres Type
. Read more
Creates a new value of this type from a NULL
SQL value. Read more
A convenience function that delegates to from_sql
and from_sql_null
depending on the
value of raw
. Read more
Creates a new value of this type from a buffer of data of the specified
Postgres Type
in its binary format. Read more
Determines if a value of this type can be created from the specified
Postgres Type
. Read more
Creates a new value of this type from a NULL
SQL value. Read more
A convenience function that delegates to from_sql
and from_sql_null
depending on the
value of raw
. Read more
impl<'a, T0, T1, T2, T3> FromSql<'a> for Record<(T0, T1, T2, T3)> where
T0: FromSql<'a>,
T1: FromSql<'a>,
T2: FromSql<'a>,
T3: FromSql<'a>,
Creates a new value of this type from a buffer of data of the specified
Postgres Type
in its binary format. Read more
Determines if a value of this type can be created from the specified
Postgres Type
. Read more
Creates a new value of this type from a NULL
SQL value. Read more
A convenience function that delegates to from_sql
and from_sql_null
depending on the
value of raw
. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.