[−][src]Struct diesel::sql_types::Nullable
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
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,
[src][+]
T: Queryable<ST, DB>,
DB: Backend,
Option<T::Row>: FromSqlRow<Nullable<ST>, DB>,
ST: NotNull,
impl<T, ST, DB> FromSql<Nullable<ST>, DB> for Option<T> where
T: FromSql<ST, DB>,
DB: Backend,
ST: NotNull,
[src][+]
T: FromSql<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,
[src][+]
T: FromSqlRow<ST, DB>,
DB: Backend,
ST: NotNull,
impl AsExpression<Nullable<Timestamp>> for now
[src][+]
impl<'expr> AsExpression<Nullable<Timestamp>> for &'expr SystemTime
[src][+]
impl<'expr2, 'expr> AsExpression<Nullable<Timestamp>> for &'expr2 &'expr SystemTime
[src][+]
impl AsExpression<Nullable<Timestamp>> for SystemTime
[src][+]
impl<'expr> AsExpression<Nullable<Date>> for &'expr NaiveDate
[src][+]
impl<'expr2, 'expr> AsExpression<Nullable<Date>> for &'expr2 &'expr NaiveDate
[src][+]
impl AsExpression<Nullable<Date>> for NaiveDate
[src][+]
impl<'expr> AsExpression<Nullable<Time>> for &'expr NaiveTime
[src][+]
impl<'expr2, 'expr> AsExpression<Nullable<Time>> for &'expr2 &'expr NaiveTime
[src][+]
impl AsExpression<Nullable<Time>> for NaiveTime
[src][+]
impl<'expr> AsExpression<Nullable<Timestamp>> for &'expr NaiveDateTime
[src][+]
impl<'expr2, 'expr> AsExpression<Nullable<Timestamp>> for &'expr2 &'expr NaiveDateTime
[src][+]
impl AsExpression<Nullable<Timestamp>> for NaiveDateTime
[src][+]
impl<'expr> AsExpression<Nullable<Datetime>> for &'expr NaiveDateTime
[src][+]
impl<'expr2, 'expr> AsExpression<Nullable<Datetime>> for &'expr2 &'expr NaiveDateTime
[src][+]
impl AsExpression<Nullable<Datetime>> for NaiveDateTime
[src][+]
impl<T, ST> AsExpression<Nullable<ST>> for Option<T> where
ST: NotNull,
[src][+]
ST: NotNull,
impl<'a, T, ST> AsExpression<Nullable<ST>> for &'a Option<T> where
ST: NotNull,
[src][+]
ST: NotNull,
impl<'expr> AsExpression<Nullable<Bool>> for &'expr bool
[src][+]
impl<'expr2, 'expr> AsExpression<Nullable<Bool>> for &'expr2 &'expr bool
[src][+]
impl AsExpression<Nullable<Bool>> for bool
[src][+]
impl<'expr> AsExpression<Nullable<TinyInt>> for &'expr i8
[src][+]
impl<'expr2, 'expr> AsExpression<Nullable<TinyInt>> for &'expr2 &'expr i8
[src][+]
impl AsExpression<Nullable<TinyInt>> for i8
[src][+]
impl<'expr> AsExpression<Nullable<SmallInt>> for &'expr i16
[src][+]
impl<'expr2, 'expr> AsExpression<Nullable<SmallInt>> for &'expr2 &'expr i16
[src][+]
impl AsExpression<Nullable<SmallInt>> for i16
[src][+]
impl<'expr> AsExpression<Nullable<Integer>> for &'expr i32
[src][+]
impl<'expr2, 'expr> AsExpression<Nullable<Integer>> for &'expr2 &'expr i32
[src][+]
impl AsExpression<Nullable<Integer>> for i32
[src][+]
impl<'expr> AsExpression<Nullable<BigInt>> for &'expr i64
[src][+]
impl<'expr2, 'expr> AsExpression<Nullable<BigInt>> for &'expr2 &'expr i64
[src][+]
impl AsExpression<Nullable<BigInt>> for i64
[src][+]
impl<'expr> AsExpression<Nullable<Unsigned<TinyInt>>> for &'expr u8
[src][+]
impl<'expr2, 'expr> AsExpression<Nullable<Unsigned<TinyInt>>> for &'expr2 &'expr u8
[src][+]
impl AsExpression<Nullable<Unsigned<TinyInt>>> for u8
[src][+]
impl<'expr> AsExpression<Nullable<Unsigned<SmallInt>>> for &'expr u16
[src][+]
impl<'expr2, 'expr> AsExpression<Nullable<Unsigned<SmallInt>>> for &'expr2 &'expr u16
[src][+]
impl AsExpression<Nullable<Unsigned<SmallInt>>> for u16
[src][+]
impl<'expr> AsExpression<Nullable<Unsigned<Integer>>> for &'expr u32
[src][+]
impl<'expr2, 'expr> AsExpression<Nullable<Unsigned<Integer>>> for &'expr2 &'expr u32
[src][+]
impl AsExpression<Nullable<Unsigned<Integer>>> for u32
[src][+]
impl<'expr> AsExpression<Nullable<Unsigned<BigInt>>> for &'expr u64
[src][+]
impl<'expr2, 'expr> AsExpression<Nullable<Unsigned<BigInt>>> for &'expr2 &'expr u64
[src][+]
impl AsExpression<Nullable<Unsigned<BigInt>>> for u64
[src][+]
impl<'expr> AsExpression<Nullable<Float>> for &'expr f32
[src][+]
impl<'expr2, 'expr> AsExpression<Nullable<Float>> for &'expr2 &'expr f32
[src][+]
impl AsExpression<Nullable<Float>> for f32
[src][+]
impl<'expr> AsExpression<Nullable<Double>> for &'expr f64
[src][+]
impl<'expr2, 'expr> AsExpression<Nullable<Double>> for &'expr2 &'expr f64
[src][+]
impl AsExpression<Nullable<Double>> for f64
[src][+]
impl<'expr> AsExpression<Nullable<Text>> for &'expr String
[src][+]
impl<'expr2, 'expr> AsExpression<Nullable<Text>> for &'expr2 &'expr String
[src][+]
impl AsExpression<Nullable<Text>> for String
[src][+]
impl<'expr> AsExpression<Nullable<Text>> for &'expr str
[src][+]
impl<'expr2, 'expr> AsExpression<Nullable<Text>> for &'expr2 &'expr str
[src][+]
impl<'expr> AsExpression<Nullable<Binary>> for &'expr Vec<u8>
[src][+]
impl<'expr2, 'expr> AsExpression<Nullable<Binary>> for &'expr2 &'expr Vec<u8>
[src][+]
impl AsExpression<Nullable<Binary>> for Vec<u8>
[src][+]
impl<'expr> AsExpression<Nullable<Binary>> for &'expr [u8]
[src][+]
impl<'expr2, 'expr> AsExpression<Nullable<Binary>> for &'expr2 &'expr [u8]
[src][+]
impl<T> QueryId for Nullable<T> where
T: QueryId + NotNull,
[src][+]
T: QueryId + NotNull,
impl<__DB> ToSql<Nullable<Timestamp>, __DB> for SystemTime where
__DB: Backend,
Self: ToSql<Timestamp, __DB>,
[src][+]
__DB: Backend,
Self: ToSql<Timestamp, __DB>,
impl<__DB> ToSql<Nullable<Date>, __DB> for NaiveDate where
__DB: Backend,
Self: ToSql<Date, __DB>,
[src][+]
__DB: Backend,
Self: ToSql<Date, __DB>,
impl<__DB> ToSql<Nullable<Time>, __DB> for NaiveTime where
__DB: Backend,
Self: ToSql<Time, __DB>,
[src][+]
__DB: Backend,
Self: ToSql<Time, __DB>,
impl<__DB> ToSql<Nullable<Timestamp>, __DB> for NaiveDateTime where
__DB: Backend,
Self: ToSql<Timestamp, __DB>,
[src][+]
__DB: Backend,
Self: ToSql<Timestamp, __DB>,
impl<__DB> ToSql<Nullable<Datetime>, __DB> for NaiveDateTime where
__DB: Backend,
Self: ToSql<Datetime, __DB>,
[src][+]
__DB: Backend,
Self: ToSql<Datetime, __DB>,
impl<T, ST, DB> ToSql<Nullable<ST>, DB> for Option<T> where
T: ToSql<ST, DB>,
DB: Backend,
ST: NotNull,
[src][+]
T: ToSql<ST, DB>,
DB: Backend,
ST: NotNull,
impl<__DB> ToSql<Nullable<Bool>, __DB> for bool where
__DB: Backend,
Self: ToSql<Bool, __DB>,
[src][+]
__DB: Backend,
Self: ToSql<Bool, __DB>,
impl<__DB> ToSql<Nullable<TinyInt>, __DB> for i8 where
__DB: Backend,
Self: ToSql<TinyInt, __DB>,
[src][+]
__DB: Backend,
Self: ToSql<TinyInt, __DB>,
impl<__DB> ToSql<Nullable<SmallInt>, __DB> for i16 where
__DB: Backend,
Self: ToSql<SmallInt, __DB>,
[src][+]
__DB: Backend,
Self: ToSql<SmallInt, __DB>,
impl<__DB> ToSql<Nullable<Integer>, __DB> for i32 where
__DB: Backend,
Self: ToSql<Integer, __DB>,
[src][+]
__DB: Backend,
Self: ToSql<Integer, __DB>,
impl<__DB> ToSql<Nullable<BigInt>, __DB> for i64 where
__DB: Backend,
Self: ToSql<BigInt, __DB>,
[src][+]
__DB: Backend,
Self: ToSql<BigInt, __DB>,
impl<__DB> ToSql<Nullable<Unsigned<TinyInt>>, __DB> for u8 where
__DB: Backend,
Self: ToSql<Unsigned<TinyInt>, __DB>,
[src][+]
__DB: Backend,
Self: ToSql<Unsigned<TinyInt>, __DB>,
impl<__DB> ToSql<Nullable<Unsigned<SmallInt>>, __DB> for u16 where
__DB: Backend,
Self: ToSql<Unsigned<SmallInt>, __DB>,
[src][+]
__DB: Backend,
Self: ToSql<Unsigned<SmallInt>, __DB>,
impl<__DB> ToSql<Nullable<Unsigned<Integer>>, __DB> for u32 where
__DB: Backend,
Self: ToSql<Unsigned<Integer>, __DB>,
[src][+]
__DB: Backend,
Self: ToSql<Unsigned<Integer>, __DB>,
impl<__DB> ToSql<Nullable<Unsigned<BigInt>>, __DB> for u64 where
__DB: Backend,
Self: ToSql<Unsigned<BigInt>, __DB>,
[src][+]
__DB: Backend,
Self: ToSql<Unsigned<BigInt>, __DB>,
impl<__DB> ToSql<Nullable<Float>, __DB> for f32 where
__DB: Backend,
Self: ToSql<Float, __DB>,
[src][+]
__DB: Backend,
Self: ToSql<Float, __DB>,
impl<__DB> ToSql<Nullable<Double>, __DB> for f64 where
__DB: Backend,
Self: ToSql<Double, __DB>,
[src][+]
__DB: Backend,
Self: ToSql<Double, __DB>,
impl<__DB> ToSql<Nullable<Text>, __DB> for String where
__DB: Backend,
Self: ToSql<Text, __DB>,
[src][+]
__DB: Backend,
Self: ToSql<Text, __DB>,
impl<__DB> ToSql<Nullable<Text>, __DB> for str where
__DB: Backend,
Self: ToSql<Text, __DB>,
[src][+]
__DB: Backend,
Self: ToSql<Text, __DB>,
impl<__DB> ToSql<Nullable<Binary>, __DB> for Vec<u8> where
__DB: Backend,
Self: ToSql<Binary, __DB>,
[src][+]
__DB: Backend,
Self: ToSql<Binary, __DB>,
impl<__DB> ToSql<Nullable<Binary>, __DB> for [u8] where
__DB: Backend,
Self: ToSql<Binary, __DB>,
[src][+]
__DB: Backend,
Self: ToSql<Binary, __DB>,
impl<T> Foldable for Nullable<T> where
T: Foldable + NotNull,
[src]
T: Foldable + NotNull,
impl<T> Add for Nullable<T> where
T: Add + NotNull,
T::Rhs: NotNull,
T::Output: NotNull,
[src]
T: Add + NotNull,
T::Rhs: NotNull,
T::Output: NotNull,
type Rhs = Nullable<T::Rhs>
The SQL type which can be added to this one
type Output = Nullable<T::Output>
The SQL type of the result of adding Rhs
to Self
impl<T> Sub for Nullable<T> where
T: Sub + NotNull,
T::Rhs: NotNull,
T::Output: NotNull,
[src]
T: Sub + NotNull,
T::Rhs: NotNull,
T::Output: NotNull,
type Rhs = Nullable<T::Rhs>
The SQL type which can be subtracted from this one
type Output = Nullable<T::Output>
The SQL type of the result of subtracting Rhs
from Self
impl<T> Mul for Nullable<T> where
T: Mul + NotNull,
T::Rhs: NotNull,
T::Output: NotNull,
[src]
T: Mul + NotNull,
T::Rhs: NotNull,
T::Output: NotNull,
type Rhs = Nullable<T::Rhs>
The SQL type which this can be multiplied by
type Output = Nullable<T::Output>
The SQL type of the result of multiplying Self
by Rhs
impl<T> Div for Nullable<T> where
T: Div + NotNull,
T::Rhs: NotNull,
T::Output: NotNull,
[src]
T: Div + NotNull,
T::Rhs: NotNull,
T::Output: NotNull,
type Rhs = Nullable<T::Rhs>
The SQL type which this one can be divided by
type Output = Nullable<T::Output>
The SQL type of the result of dividing Self
by Rhs
impl<T: SqlOrd + NotNull> SqlOrd for Nullable<T>
[src]
impl<T, DB> HasSqlType<Nullable<T>> for DB where
DB: Backend + HasSqlType<T>,
T: NotNull,
[src][+]
DB: Backend + HasSqlType<T>,
T: NotNull,
impl<T: NotNull> IntoNullable for Nullable<T>
[src]
impl<T: NotNull + SingleValue> SingleValue for Nullable<T>
[src]
impl<ST: Copy + NotNull> Copy for Nullable<ST>
[src]
impl<ST: Default + NotNull> Default for Nullable<ST>
[src][+]
impl<ST: Clone + NotNull> Clone for Nullable<ST>
[src][+]
impl<ST: Debug + NotNull> Debug for Nullable<ST>
[src][+]
Auto Trait Implementations
impl<ST> Unpin for Nullable<ST> where
ST: Unpin,
ST: Unpin,
impl<ST> Sync for Nullable<ST> where
ST: Sync,
ST: Sync,
impl<ST> Send for Nullable<ST> where
ST: Send,
ST: Send,
impl<ST> UnwindSafe for Nullable<ST> where
ST: UnwindSafe,
ST: UnwindSafe,
impl<ST> RefUnwindSafe for Nullable<ST> where
ST: RefUnwindSafe,
ST: RefUnwindSafe,
Blanket Implementations
impl<T> IntoSql for T
[src][+]
impl<T> IntoNullable for T where
T: NotNull,
[src]
T: NotNull,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T, DB> HasSqlType<Nullable<T>> for DB where
DB: Backend + HasSqlType<T>,
T: NotNull,
[src][+]
DB: Backend + HasSqlType<T>,
T: NotNull,