pub struct Nullable<ST: NotNull>(_);
Expand description
The nullable SQL type.
This wraps another SQL type to indicate that it can be null.
By default all values are assumed to be NOT NULL
.
ToSql
impls
- Any
T
which implementsToSql<ST>
Option<T>
for anyT
which implementsToSql<ST>
FromSql
impls
Option<T>
for anyT
which implementsFromSql<ST>
Trait Implementations
sourceimpl<'a, 'b, ST, T> AsExpression<Nullable<Array<ST>>> for &'a [T]
impl<'a, 'b, ST, T> AsExpression<Nullable<Array<ST>>> for &'a [T]
type Expression = Bound<Nullable<Array<ST>>, Self>
type Expression = Bound<Nullable<Array<ST>>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'a, 'b, ST, T> AsExpression<Nullable<Array<ST>>> for &'a &'b [T]
impl<'a, 'b, ST, T> AsExpression<Nullable<Array<ST>>> for &'a &'b [T]
type Expression = Bound<Nullable<Array<ST>>, Self>
type Expression = Bound<Nullable<Array<ST>>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'a, 'b, ST, T> AsExpression<Nullable<Array<ST>>> for Vec<T>
impl<'a, 'b, ST, T> AsExpression<Nullable<Array<ST>>> for Vec<T>
type Expression = Bound<Nullable<Array<ST>>, Self>
type Expression = Bound<Nullable<Array<ST>>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'a, 'b, ST, T> AsExpression<Nullable<Array<ST>>> for &'a Vec<T>
impl<'a, 'b, ST, T> AsExpression<Nullable<Array<ST>>> for &'a Vec<T>
type Expression = Bound<Nullable<Array<ST>>, Self>
type Expression = Bound<Nullable<Array<ST>>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'a, 'b, ST, T> AsExpression<Nullable<Array<ST>>> for &'a &'b Vec<T>
impl<'a, 'b, ST, T> AsExpression<Nullable<Array<ST>>> for &'a &'b Vec<T>
type Expression = Bound<Nullable<Array<ST>>, Self>
type Expression = Bound<Nullable<Array<ST>>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr> AsExpression<Nullable<BigInt>> for &'expr i64
impl<'expr> AsExpression<Nullable<BigInt>> for &'expr i64
type Expression = Bound<Nullable<BigInt>, Self>
type Expression = Bound<Nullable<BigInt>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr2, 'expr> AsExpression<Nullable<BigInt>> for &'expr2 &'expr i64
impl<'expr2, 'expr> AsExpression<Nullable<BigInt>> for &'expr2 &'expr i64
type Expression = Bound<Nullable<BigInt>, Self>
type Expression = Bound<Nullable<BigInt>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl AsExpression<Nullable<BigInt>> for i64
impl AsExpression<Nullable<BigInt>> for i64
type Expression = Bound<Nullable<BigInt>, Self>
type Expression = Bound<Nullable<BigInt>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr> AsExpression<Nullable<Binary>> for &'expr Vec<u8>
impl<'expr> AsExpression<Nullable<Binary>> for &'expr Vec<u8>
type Expression = Bound<Nullable<Binary>, Self>
type Expression = Bound<Nullable<Binary>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr2, 'expr> AsExpression<Nullable<Binary>> for &'expr2 &'expr Vec<u8>
impl<'expr2, 'expr> AsExpression<Nullable<Binary>> for &'expr2 &'expr Vec<u8>
type Expression = Bound<Nullable<Binary>, Self>
type Expression = Bound<Nullable<Binary>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl AsExpression<Nullable<Binary>> for Vec<u8>
impl AsExpression<Nullable<Binary>> for Vec<u8>
type Expression = Bound<Nullable<Binary>, Self>
type Expression = Bound<Nullable<Binary>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr> AsExpression<Nullable<Binary>> for &'expr [u8]
impl<'expr> AsExpression<Nullable<Binary>> for &'expr [u8]
type Expression = Bound<Nullable<Binary>, Self>
type Expression = Bound<Nullable<Binary>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr2, 'expr> AsExpression<Nullable<Binary>> for &'expr2 &'expr [u8]
impl<'expr2, 'expr> AsExpression<Nullable<Binary>> for &'expr2 &'expr [u8]
type Expression = Bound<Nullable<Binary>, Self>
type Expression = Bound<Nullable<Binary>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr> AsExpression<Nullable<Bool>> for &'expr bool
impl<'expr> AsExpression<Nullable<Bool>> for &'expr bool
type Expression = Bound<Nullable<Bool>, Self>
type Expression = Bound<Nullable<Bool>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr2, 'expr> AsExpression<Nullable<Bool>> for &'expr2 &'expr bool
impl<'expr2, 'expr> AsExpression<Nullable<Bool>> for &'expr2 &'expr bool
type Expression = Bound<Nullable<Bool>, Self>
type Expression = Bound<Nullable<Bool>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl AsExpression<Nullable<Bool>> for bool
impl AsExpression<Nullable<Bool>> for bool
type Expression = Bound<Nullable<Bool>, Self>
type Expression = Bound<Nullable<Bool>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr> AsExpression<Nullable<Date>> for &'expr PgDate
impl<'expr> AsExpression<Nullable<Date>> for &'expr PgDate
type Expression = Bound<Nullable<Date>, Self>
type Expression = Bound<Nullable<Date>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr2, 'expr> AsExpression<Nullable<Date>> for &'expr2 &'expr PgDate
impl<'expr2, 'expr> AsExpression<Nullable<Date>> for &'expr2 &'expr PgDate
type Expression = Bound<Nullable<Date>, Self>
type Expression = Bound<Nullable<Date>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl AsExpression<Nullable<Date>> for PgDate
impl AsExpression<Nullable<Date>> for PgDate
type Expression = Bound<Nullable<Date>, Self>
type Expression = Bound<Nullable<Date>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr> AsExpression<Nullable<Double>> for &'expr f64
impl<'expr> AsExpression<Nullable<Double>> for &'expr f64
type Expression = Bound<Nullable<Double>, Self>
type Expression = Bound<Nullable<Double>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr2, 'expr> AsExpression<Nullable<Double>> for &'expr2 &'expr f64
impl<'expr2, 'expr> AsExpression<Nullable<Double>> for &'expr2 &'expr f64
type Expression = Bound<Nullable<Double>, Self>
type Expression = Bound<Nullable<Double>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl AsExpression<Nullable<Double>> for f64
impl AsExpression<Nullable<Double>> for f64
type Expression = Bound<Nullable<Double>, Self>
type Expression = Bound<Nullable<Double>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr> AsExpression<Nullable<Float>> for &'expr f32
impl<'expr> AsExpression<Nullable<Float>> for &'expr f32
type Expression = Bound<Nullable<Float>, Self>
type Expression = Bound<Nullable<Float>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr2, 'expr> AsExpression<Nullable<Float>> for &'expr2 &'expr f32
impl<'expr2, 'expr> AsExpression<Nullable<Float>> for &'expr2 &'expr f32
type Expression = Bound<Nullable<Float>, Self>
type Expression = Bound<Nullable<Float>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl AsExpression<Nullable<Float>> for f32
impl AsExpression<Nullable<Float>> for f32
type Expression = Bound<Nullable<Float>, Self>
type Expression = Bound<Nullable<Float>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr> AsExpression<Nullable<Integer>> for &'expr i32
impl<'expr> AsExpression<Nullable<Integer>> for &'expr i32
type Expression = Bound<Nullable<Integer>, Self>
type Expression = Bound<Nullable<Integer>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr2, 'expr> AsExpression<Nullable<Integer>> for &'expr2 &'expr i32
impl<'expr2, 'expr> AsExpression<Nullable<Integer>> for &'expr2 &'expr i32
type Expression = Bound<Nullable<Integer>, Self>
type Expression = Bound<Nullable<Integer>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl AsExpression<Nullable<Integer>> for i32
impl AsExpression<Nullable<Integer>> for i32
type Expression = Bound<Nullable<Integer>, Self>
type Expression = Bound<Nullable<Integer>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr> AsExpression<Nullable<Interval>> for &'expr PgInterval
impl<'expr> AsExpression<Nullable<Interval>> for &'expr PgInterval
type Expression = Bound<Nullable<Interval>, Self>
type Expression = Bound<Nullable<Interval>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr2, 'expr> AsExpression<Nullable<Interval>> for &'expr2 &'expr PgInterval
impl<'expr2, 'expr> AsExpression<Nullable<Interval>> for &'expr2 &'expr PgInterval
type Expression = Bound<Nullable<Interval>, Self>
type Expression = Bound<Nullable<Interval>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl AsExpression<Nullable<Interval>> for PgInterval
impl AsExpression<Nullable<Interval>> for PgInterval
type Expression = Bound<Nullable<Interval>, Self>
type Expression = Bound<Nullable<Interval>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr> AsExpression<Nullable<Money>> for &'expr PgMoney
impl<'expr> AsExpression<Nullable<Money>> for &'expr PgMoney
type Expression = Bound<Nullable<Money>, Self>
type Expression = Bound<Nullable<Money>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr2, 'expr> AsExpression<Nullable<Money>> for &'expr2 &'expr PgMoney
impl<'expr2, 'expr> AsExpression<Nullable<Money>> for &'expr2 &'expr PgMoney
type Expression = Bound<Nullable<Money>, Self>
type Expression = Bound<Nullable<Money>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl AsExpression<Nullable<Money>> for PgMoney
impl AsExpression<Nullable<Money>> for PgMoney
type Expression = Bound<Nullable<Money>, Self>
type Expression = Bound<Nullable<Money>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr> AsExpression<Nullable<Numeric>> for &'expr PgNumeric
impl<'expr> AsExpression<Nullable<Numeric>> for &'expr PgNumeric
type Expression = Bound<Nullable<Numeric>, Self>
type Expression = Bound<Nullable<Numeric>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr2, 'expr> AsExpression<Nullable<Numeric>> for &'expr2 &'expr PgNumeric
impl<'expr2, 'expr> AsExpression<Nullable<Numeric>> for &'expr2 &'expr PgNumeric
type Expression = Bound<Nullable<Numeric>, Self>
type Expression = Bound<Nullable<Numeric>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl AsExpression<Nullable<Numeric>> for PgNumeric
impl AsExpression<Nullable<Numeric>> for PgNumeric
type Expression = Bound<Nullable<Numeric>, Self>
type Expression = Bound<Nullable<Numeric>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr> AsExpression<Nullable<Oid>> for &'expr u32
impl<'expr> AsExpression<Nullable<Oid>> for &'expr u32
type Expression = Bound<Nullable<Oid>, Self>
type Expression = Bound<Nullable<Oid>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr2, 'expr> AsExpression<Nullable<Oid>> for &'expr2 &'expr u32
impl<'expr2, 'expr> AsExpression<Nullable<Oid>> for &'expr2 &'expr u32
type Expression = Bound<Nullable<Oid>, Self>
type Expression = Bound<Nullable<Oid>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl AsExpression<Nullable<Oid>> for u32
impl AsExpression<Nullable<Oid>> for u32
type Expression = Bound<Nullable<Oid>, Self>
type Expression = Bound<Nullable<Oid>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<ST, T> AsExpression<Nullable<Range<ST>>> for (Bound<T>, Bound<T>)
impl<ST, T> AsExpression<Nullable<Range<ST>>> for (Bound<T>, Bound<T>)
type Expression = SqlBound<Nullable<Range<ST>>, Self>
type Expression = SqlBound<Nullable<Range<ST>>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'a, ST, T> AsExpression<Nullable<Range<ST>>> for &'a (Bound<T>, Bound<T>)
impl<'a, ST, T> AsExpression<Nullable<Range<ST>>> for &'a (Bound<T>, Bound<T>)
type Expression = SqlBound<Nullable<Range<ST>>, Self>
type Expression = SqlBound<Nullable<Range<ST>>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<T, ST> AsExpression<Nullable<ST>> for Option<T> where
ST: NotNull,
impl<T, ST> AsExpression<Nullable<ST>> for Option<T> where
ST: NotNull,
type Expression = Bound<Nullable<ST>, Self>
type Expression = Bound<Nullable<ST>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'a, T, ST> AsExpression<Nullable<ST>> for &'a Option<T> where
ST: NotNull,
impl<'a, T, ST> AsExpression<Nullable<ST>> for &'a Option<T> where
ST: NotNull,
type Expression = Bound<Nullable<ST>, Self>
type Expression = Bound<Nullable<ST>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr> AsExpression<Nullable<SmallInt>> for &'expr i16
impl<'expr> AsExpression<Nullable<SmallInt>> for &'expr i16
type Expression = Bound<Nullable<SmallInt>, Self>
type Expression = Bound<Nullable<SmallInt>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr2, 'expr> AsExpression<Nullable<SmallInt>> for &'expr2 &'expr i16
impl<'expr2, 'expr> AsExpression<Nullable<SmallInt>> for &'expr2 &'expr i16
type Expression = Bound<Nullable<SmallInt>, Self>
type Expression = Bound<Nullable<SmallInt>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl AsExpression<Nullable<SmallInt>> for i16
impl AsExpression<Nullable<SmallInt>> for i16
type Expression = Bound<Nullable<SmallInt>, Self>
type Expression = Bound<Nullable<SmallInt>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr> AsExpression<Nullable<Text>> for &'expr String
impl<'expr> AsExpression<Nullable<Text>> for &'expr String
type Expression = Bound<Nullable<Text>, Self>
type Expression = Bound<Nullable<Text>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr2, 'expr> AsExpression<Nullable<Text>> for &'expr2 &'expr String
impl<'expr2, 'expr> AsExpression<Nullable<Text>> for &'expr2 &'expr String
type Expression = Bound<Nullable<Text>, Self>
type Expression = Bound<Nullable<Text>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl AsExpression<Nullable<Text>> for String
impl AsExpression<Nullable<Text>> for String
type Expression = Bound<Nullable<Text>, Self>
type Expression = Bound<Nullable<Text>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr> AsExpression<Nullable<Text>> for &'expr str
impl<'expr> AsExpression<Nullable<Text>> for &'expr str
type Expression = Bound<Nullable<Text>, Self>
type Expression = Bound<Nullable<Text>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr2, 'expr> AsExpression<Nullable<Text>> for &'expr2 &'expr str
impl<'expr2, 'expr> AsExpression<Nullable<Text>> for &'expr2 &'expr str
type Expression = Bound<Nullable<Text>, Self>
type Expression = Bound<Nullable<Text>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr> AsExpression<Nullable<Time>> for &'expr PgTime
impl<'expr> AsExpression<Nullable<Time>> for &'expr PgTime
type Expression = Bound<Nullable<Time>, Self>
type Expression = Bound<Nullable<Time>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr2, 'expr> AsExpression<Nullable<Time>> for &'expr2 &'expr PgTime
impl<'expr2, 'expr> AsExpression<Nullable<Time>> for &'expr2 &'expr PgTime
type Expression = Bound<Nullable<Time>, Self>
type Expression = Bound<Nullable<Time>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl AsExpression<Nullable<Time>> for PgTime
impl AsExpression<Nullable<Time>> for PgTime
type Expression = Bound<Nullable<Time>, Self>
type Expression = Bound<Nullable<Time>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl AsExpression<Nullable<Timestamp>> for now
impl AsExpression<Nullable<Timestamp>> for now
type Expression = Coerce<now, Nullable<Timestamp>>
type Expression = Coerce<now, Nullable<Timestamp>>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr> AsExpression<Nullable<Timestamp>> for &'expr PgTimestamp
impl<'expr> AsExpression<Nullable<Timestamp>> for &'expr PgTimestamp
type Expression = Bound<Nullable<Timestamp>, Self>
type Expression = Bound<Nullable<Timestamp>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr2, 'expr> AsExpression<Nullable<Timestamp>> for &'expr2 &'expr PgTimestamp
impl<'expr2, 'expr> AsExpression<Nullable<Timestamp>> for &'expr2 &'expr PgTimestamp
type Expression = Bound<Nullable<Timestamp>, Self>
type Expression = Bound<Nullable<Timestamp>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl AsExpression<Nullable<Timestamp>> for PgTimestamp
impl AsExpression<Nullable<Timestamp>> for PgTimestamp
type Expression = Bound<Nullable<Timestamp>, Self>
type Expression = Bound<Nullable<Timestamp>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr> AsExpression<Nullable<Timestamp>> for &'expr SystemTime
impl<'expr> AsExpression<Nullable<Timestamp>> for &'expr SystemTime
type Expression = Bound<Nullable<Timestamp>, Self>
type Expression = Bound<Nullable<Timestamp>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr2, 'expr> AsExpression<Nullable<Timestamp>> for &'expr2 &'expr SystemTime
impl<'expr2, 'expr> AsExpression<Nullable<Timestamp>> for &'expr2 &'expr SystemTime
type Expression = Bound<Nullable<Timestamp>, Self>
type Expression = Bound<Nullable<Timestamp>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl AsExpression<Nullable<Timestamp>> for SystemTime
impl AsExpression<Nullable<Timestamp>> for SystemTime
type Expression = Bound<Nullable<Timestamp>, Self>
type Expression = Bound<Nullable<Timestamp>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl AsExpression<Nullable<Timestamptz>> for now
impl AsExpression<Nullable<Timestamptz>> for now
type Expression = Coerce<now, Nullable<Timestamptz>>
type Expression = Coerce<now, Nullable<Timestamptz>>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr> AsExpression<Nullable<Timestamptz>> for &'expr PgTimestamp
impl<'expr> AsExpression<Nullable<Timestamptz>> for &'expr PgTimestamp
type Expression = Bound<Nullable<Timestamptz>, Self>
type Expression = Bound<Nullable<Timestamptz>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr2, 'expr> AsExpression<Nullable<Timestamptz>> for &'expr2 &'expr PgTimestamp
impl<'expr2, 'expr> AsExpression<Nullable<Timestamptz>> for &'expr2 &'expr PgTimestamp
type Expression = Bound<Nullable<Timestamptz>, Self>
type Expression = Bound<Nullable<Timestamptz>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl AsExpression<Nullable<Timestamptz>> for PgTimestamp
impl AsExpression<Nullable<Timestamptz>> for PgTimestamp
type Expression = Bound<Nullable<Timestamptz>, Self>
type Expression = Bound<Nullable<Timestamptz>, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<T, ST, DB> FromSql<Nullable<ST>, DB> for Option<T> where
T: FromSql<ST, DB>,
DB: Backend,
ST: NotNull,
impl<T, ST, DB> FromSql<Nullable<ST>, DB> for Option<T> where
T: FromSql<ST, DB>,
DB: Backend,
ST: NotNull,
sourceimpl<T, ST, DB> FromSqlRow<Nullable<ST>, DB> for Option<T> where
T: FromSqlRow<ST, DB>,
DB: Backend,
ST: NotNull,
impl<T, ST, DB> FromSqlRow<Nullable<ST>, DB> for Option<T> where
T: FromSqlRow<ST, DB>,
DB: Backend,
ST: NotNull,
sourceconst FIELDS_NEEDED: usize
const FIELDS_NEEDED: usize
The number of fields that this type will consume. Must be equal to
the number of times you would call row.take()
in build_from_row
Read more
sourcefn build_from_row<R: Row<DB>>(row: &mut R) -> Result<Self>
fn build_from_row<R: Row<DB>>(row: &mut R) -> Result<Self>
See the trait documentation.
sourceimpl<T, DB> HasSqlType<Nullable<T>> for DB where
DB: Backend + HasSqlType<T>,
T: NotNull,
impl<T, DB> HasSqlType<Nullable<T>> for DB where
DB: Backend + HasSqlType<T>,
T: NotNull,
sourcefn metadata(lookup: &DB::MetadataLookup) -> DB::TypeMetadata
fn metadata(lookup: &DB::MetadataLookup) -> DB::TypeMetadata
Fetch the metadata for the given type Read more
sourceimpl<T: NotNull> IntoNullable for Nullable<T>
impl<T: NotNull> IntoNullable for Nullable<T>
sourceimpl<T> QueryId for Nullable<T> where
T: QueryId + NotNull,
impl<T> QueryId for Nullable<T> where
T: QueryId + NotNull,
sourceconst HAS_STATIC_QUERY_ID: bool
const HAS_STATIC_QUERY_ID: bool
Can the SQL generated by Self
be uniquely identified by its type? Read more
sourceimpl<T, ST, DB> Queryable<Nullable<ST>, DB> for Option<T> where
T: Queryable<ST, DB>,
DB: Backend,
Option<T::Row>: FromSqlRow<Nullable<ST>, DB>,
ST: NotNull,
impl<T, ST, DB> Queryable<Nullable<ST>, DB> for Option<T> where
T: Queryable<ST, DB>,
DB: Backend,
Option<T::Row>: FromSqlRow<Nullable<ST>, DB>,
ST: NotNull,
sourceimpl<__DB> ToSql<Nullable<BigInt>, __DB> for i64 where
__DB: Backend,
Self: ToSql<BigInt, __DB>,
impl<__DB> ToSql<Nullable<BigInt>, __DB> for i64 where
__DB: Backend,
Self: ToSql<BigInt, __DB>,
sourceimpl<__DB> ToSql<Nullable<Binary>, __DB> for Vec<u8> where
__DB: Backend,
Self: ToSql<Binary, __DB>,
impl<__DB> ToSql<Nullable<Binary>, __DB> for Vec<u8> where
__DB: Backend,
Self: ToSql<Binary, __DB>,
sourceimpl<__DB> ToSql<Nullable<Binary>, __DB> for [u8] where
__DB: Backend,
Self: ToSql<Binary, __DB>,
impl<__DB> ToSql<Nullable<Binary>, __DB> for [u8] where
__DB: Backend,
Self: ToSql<Binary, __DB>,
sourceimpl<__DB> ToSql<Nullable<Date>, __DB> for PgDate where
__DB: Backend,
Self: ToSql<Date, __DB>,
impl<__DB> ToSql<Nullable<Date>, __DB> for PgDate where
__DB: Backend,
Self: ToSql<Date, __DB>,
sourceimpl<__DB> ToSql<Nullable<Double>, __DB> for f64 where
__DB: Backend,
Self: ToSql<Double, __DB>,
impl<__DB> ToSql<Nullable<Double>, __DB> for f64 where
__DB: Backend,
Self: ToSql<Double, __DB>,
sourceimpl<__DB> ToSql<Nullable<Float>, __DB> for f32 where
__DB: Backend,
Self: ToSql<Float, __DB>,
impl<__DB> ToSql<Nullable<Float>, __DB> for f32 where
__DB: Backend,
Self: ToSql<Float, __DB>,
sourceimpl<__DB> ToSql<Nullable<Integer>, __DB> for i32 where
__DB: Backend,
Self: ToSql<Integer, __DB>,
impl<__DB> ToSql<Nullable<Integer>, __DB> for i32 where
__DB: Backend,
Self: ToSql<Integer, __DB>,
sourceimpl<__DB> ToSql<Nullable<Interval>, __DB> for PgInterval where
__DB: Backend,
Self: ToSql<Interval, __DB>,
impl<__DB> ToSql<Nullable<Interval>, __DB> for PgInterval where
__DB: Backend,
Self: ToSql<Interval, __DB>,
sourceimpl<__DB> ToSql<Nullable<Money>, __DB> for PgMoney where
__DB: Backend,
Self: ToSql<Money, __DB>,
impl<__DB> ToSql<Nullable<Money>, __DB> for PgMoney where
__DB: Backend,
Self: ToSql<Money, __DB>,
sourceimpl<__DB> ToSql<Nullable<Numeric>, __DB> for PgNumeric where
__DB: Backend,
Self: ToSql<Numeric, __DB>,
impl<__DB> ToSql<Nullable<Numeric>, __DB> for PgNumeric where
__DB: Backend,
Self: ToSql<Numeric, __DB>,
sourceimpl<ST, T> ToSql<Nullable<Range<ST>>, Pg> for (Bound<T>, Bound<T>) where
(Bound<T>, Bound<T>): ToSql<Range<ST>, Pg>,
impl<ST, T> ToSql<Nullable<Range<ST>>, Pg> for (Bound<T>, Bound<T>) where
(Bound<T>, Bound<T>): ToSql<Range<ST>, Pg>,
sourceimpl<T, ST, DB> ToSql<Nullable<ST>, DB> for Option<T> where
T: ToSql<ST, DB>,
DB: Backend,
ST: NotNull,
impl<T, ST, DB> ToSql<Nullable<ST>, DB> for Option<T> where
T: ToSql<ST, DB>,
DB: Backend,
ST: NotNull,
sourceimpl<__DB> ToSql<Nullable<SmallInt>, __DB> for i16 where
__DB: Backend,
Self: ToSql<SmallInt, __DB>,
impl<__DB> ToSql<Nullable<SmallInt>, __DB> for i16 where
__DB: Backend,
Self: ToSql<SmallInt, __DB>,
sourceimpl<__DB> ToSql<Nullable<Text>, __DB> for String where
__DB: Backend,
Self: ToSql<Text, __DB>,
impl<__DB> ToSql<Nullable<Text>, __DB> for String where
__DB: Backend,
Self: ToSql<Text, __DB>,
sourceimpl<__DB> ToSql<Nullable<Time>, __DB> for PgTime where
__DB: Backend,
Self: ToSql<Time, __DB>,
impl<__DB> ToSql<Nullable<Time>, __DB> for PgTime where
__DB: Backend,
Self: ToSql<Time, __DB>,
sourceimpl<__DB> ToSql<Nullable<Timestamp>, __DB> for PgTimestamp where
__DB: Backend,
Self: ToSql<Timestamp, __DB>,
impl<__DB> ToSql<Nullable<Timestamp>, __DB> for PgTimestamp where
__DB: Backend,
Self: ToSql<Timestamp, __DB>,
sourceimpl<__DB> ToSql<Nullable<Timestamp>, __DB> for SystemTime where
__DB: Backend,
Self: ToSql<Timestamp, __DB>,
impl<__DB> ToSql<Nullable<Timestamp>, __DB> for SystemTime where
__DB: Backend,
Self: ToSql<Timestamp, __DB>,
sourceimpl<__DB> ToSql<Nullable<Timestamptz>, __DB> for PgTimestamp where
__DB: Backend,
Self: ToSql<Timestamptz, __DB>,
impl<__DB> ToSql<Nullable<Timestamptz>, __DB> for PgTimestamp where
__DB: Backend,
Self: ToSql<Timestamptz, __DB>,
impl<ST: Copy + NotNull> Copy for Nullable<ST>
impl<T: NotNull + SingleValue> SingleValue for Nullable<T>
impl<T: SqlOrd + NotNull> SqlOrd for Nullable<T>
Auto Trait Implementations
impl<ST> RefUnwindSafe for Nullable<ST> where
ST: RefUnwindSafe,
impl<ST> Send for Nullable<ST> where
ST: Send,
impl<ST> Sync for Nullable<ST> where
ST: Sync,
impl<ST> Unpin for Nullable<ST> where
ST: Unpin,
impl<ST> UnwindSafe for Nullable<ST> where
ST: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T, DB> HasSqlType<Nullable<T>> for DB where
DB: Backend + HasSqlType<T>,
T: NotNull,
impl<T, DB> HasSqlType<Nullable<T>> for DB where
DB: Backend + HasSqlType<T>,
T: NotNull,
sourcefn metadata(lookup: &DB::MetadataLookup) -> DB::TypeMetadata
fn metadata(lookup: &DB::MetadataLookup) -> DB::TypeMetadata
Fetch the metadata for the given type Read more
fn row_metadata(out: &mut Vec<DB::TypeMetadata>, lookup: &DB::MetadataLookup)
sourceimpl<T> IntoSql for T
impl<T> IntoSql for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more