Struct diesel::sql_types::Nullable [−][src]
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
type Expression = Bound<Nullable<Array<ST>>, Self>
type Expression = Bound<Nullable<Array<ST>>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Array<ST>>, Self>
type Expression = Bound<Nullable<Array<ST>>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Array<ST>>, Self>
type Expression = Bound<Nullable<Array<ST>>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Array<ST>>, Self>
type Expression = Bound<Nullable<Array<ST>>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Array<ST>>, Self>
type Expression = Bound<Nullable<Array<ST>>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<BigInt>, Self>
type Expression = Bound<Nullable<BigInt>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<BigInt>, Self>
type Expression = Bound<Nullable<BigInt>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<BigInt>, Self>
type Expression = Bound<Nullable<BigInt>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Binary>, Self>
type Expression = Bound<Nullable<Binary>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Binary>, Self>
type Expression = Bound<Nullable<Binary>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Binary>, Self>
type Expression = Bound<Nullable<Binary>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Binary>, Self>
type Expression = Bound<Nullable<Binary>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Binary>, Self>
type Expression = Bound<Nullable<Binary>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Bool>, Self>
type Expression = Bound<Nullable<Bool>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Bool>, Self>
type Expression = Bound<Nullable<Bool>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Bool>, Self>
type Expression = Bound<Nullable<Bool>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Date>, Self>
type Expression = Bound<Nullable<Date>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Date>, Self>
type Expression = Bound<Nullable<Date>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Date>, Self>
type Expression = Bound<Nullable<Date>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Date>, Self>
type Expression = Bound<Nullable<Date>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Date>, Self>
type Expression = Bound<Nullable<Date>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Date>, Self>
type Expression = Bound<Nullable<Date>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Double>, Self>
type Expression = Bound<Nullable<Double>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Double>, Self>
type Expression = Bound<Nullable<Double>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Double>, Self>
type Expression = Bound<Nullable<Double>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Float>, Self>
type Expression = Bound<Nullable<Float>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Float>, Self>
type Expression = Bound<Nullable<Float>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Float>, Self>
type Expression = Bound<Nullable<Float>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Integer>, Self>
type Expression = Bound<Nullable<Integer>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Integer>, Self>
type Expression = Bound<Nullable<Integer>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Integer>, Self>
type Expression = Bound<Nullable<Integer>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Interval>, Self>
type Expression = Bound<Nullable<Interval>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Interval>, Self>
type Expression = Bound<Nullable<Interval>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Interval>, Self>
type Expression = Bound<Nullable<Interval>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Money>, Self>
type Expression = Bound<Nullable<Money>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Money>, Self>
type Expression = Bound<Nullable<Money>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Money>, Self>
type Expression = Bound<Nullable<Money>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Numeric>, Self>
type Expression = Bound<Nullable<Numeric>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Numeric>, Self>
type Expression = Bound<Nullable<Numeric>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Numeric>, Self>
type Expression = Bound<Nullable<Numeric>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Oid>, Self>
type Expression = Bound<Nullable<Oid>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Oid>, Self>
type Expression = Bound<Nullable<Oid>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Oid>, Self>
type Expression = Bound<Nullable<Oid>, Self>
The expression being returned
Perform the conversion
type Expression = SqlBound<Nullable<Range<ST>>, Self>
type Expression = SqlBound<Nullable<Range<ST>>, Self>
The expression being returned
Perform the conversion
type Expression = SqlBound<Nullable<Range<ST>>, Self>
type Expression = SqlBound<Nullable<Range<ST>>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<ST>, Self>
type Expression = Bound<Nullable<ST>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<ST>, Self>
type Expression = Bound<Nullable<ST>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<SmallInt>, Self>
type Expression = Bound<Nullable<SmallInt>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<SmallInt>, Self>
type Expression = Bound<Nullable<SmallInt>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<SmallInt>, Self>
type Expression = Bound<Nullable<SmallInt>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Text>, Self>
type Expression = Bound<Nullable<Text>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Text>, Self>
type Expression = Bound<Nullable<Text>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Text>, Self>
type Expression = Bound<Nullable<Text>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Text>, Self>
type Expression = Bound<Nullable<Text>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Text>, Self>
type Expression = Bound<Nullable<Text>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Time>, Self>
type Expression = Bound<Nullable<Time>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Time>, Self>
type Expression = Bound<Nullable<Time>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Time>, Self>
type Expression = Bound<Nullable<Time>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Time>, Self>
type Expression = Bound<Nullable<Time>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Time>, Self>
type Expression = Bound<Nullable<Time>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Time>, Self>
type Expression = Bound<Nullable<Time>, Self>
The expression being returned
Perform the conversion
type Expression = Coerce<now, Nullable<Timestamp>>
type Expression = Coerce<now, Nullable<Timestamp>>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Timestamp>, Self>
type Expression = Bound<Nullable<Timestamp>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Timestamp>, Self>
type Expression = Bound<Nullable<Timestamp>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Timestamp>, Self>
type Expression = Bound<Nullable<Timestamp>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Timestamp>, Self>
type Expression = Bound<Nullable<Timestamp>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Timestamp>, Self>
type Expression = Bound<Nullable<Timestamp>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Timestamp>, Self>
type Expression = Bound<Nullable<Timestamp>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Timestamp>, Self>
type Expression = Bound<Nullable<Timestamp>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Timestamp>, Self>
type Expression = Bound<Nullable<Timestamp>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Timestamp>, Self>
type Expression = Bound<Nullable<Timestamp>, Self>
The expression being returned
Perform the conversion
type Expression = Coerce<now, Nullable<Timestamptz>>
type Expression = Coerce<now, Nullable<Timestamptz>>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Timestamptz>, Self>
type Expression = Bound<Nullable<Timestamptz>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Timestamptz>, Self>
type Expression = Bound<Nullable<Timestamptz>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Timestamptz>, Self>
type Expression = Bound<Nullable<Timestamptz>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Timestamptz>, Self>
type Expression = Bound<Nullable<Timestamptz>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Timestamptz>, Self>
type Expression = Bound<Nullable<Timestamptz>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Timestamptz>, Self>
type Expression = Bound<Nullable<Timestamptz>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Timestamptz>, Self>
type Expression = Bound<Nullable<Timestamptz>, Self>
The expression being returned
Perform the conversion
impl<'expr2, 'expr, Tz: TimeZone> AsExpression<Nullable<Timestamptz>> for &'expr2 &'expr DateTime<Tz>
impl<'expr2, 'expr, Tz: TimeZone> AsExpression<Nullable<Timestamptz>> for &'expr2 &'expr DateTime<Tz>
type Expression = Bound<Nullable<Timestamptz>, Self>
type Expression = Bound<Nullable<Timestamptz>, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Nullable<Timestamptz>, Self>
type Expression = Bound<Nullable<Timestamptz>, Self>
The expression being returned
Perform the conversion
impl<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,
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
See the trait documentation.
Fetch the metadata for the given type Read more
Can the SQL generated by Self
be uniquely identified by its type? Read more
impl<__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<__DB> ToSql<Nullable<Timestamptz>, __DB> for NaiveDateTime where
__DB: Backend,
Self: ToSql<Timestamptz, __DB>,
impl<__DB> ToSql<Nullable<Timestamptz>, __DB> for NaiveDateTime where
__DB: Backend,
Self: ToSql<Timestamptz, __DB>,
impl<Tz: TimeZone, __DB> ToSql<Nullable<Timestamptz>, __DB> for DateTime<Tz> where
__DB: Backend,
Self: ToSql<Timestamptz, __DB>,
impl<Tz: TimeZone, __DB> ToSql<Nullable<Timestamptz>, __DB> for DateTime<Tz> where
__DB: Backend,
Self: ToSql<Timestamptz, __DB>,
Auto Trait Implementations
impl<ST> RefUnwindSafe for Nullable<ST> where
ST: RefUnwindSafe,
impl<ST> UnwindSafe for Nullable<ST> where
ST: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Fetch the metadata for the given type Read more
pub fn row_metadata(
&mut Vec<<DB as TypeMetadata>::TypeMetadata, Global>,
&<DB as TypeMetadata>::MetadataLookup
)
Convert self
to an expression for Diesel’s query builder. Read more