Struct diesel::types::Nullable
[−]
[src]
pub struct Nullable<ST: NotNull>(_);
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: SqlOrd + NotNull> SqlOrd for Nullable<T>
[src]
impl<T> QueryId for Nullable<T> where T: QueryId + NotNull
[src]
impl<T> Foldable for Nullable<T> where T: Foldable + NotNull,
T::Sum: NotNull,
T::Avg: NotNull
[src]
T::Sum: NotNull,
T::Avg: NotNull
impl<ST: Default + NotNull> Default for Nullable<ST>
[src]
impl<ST: Copy + NotNull> Copy for Nullable<ST>
[src]
impl<ST: Clone + NotNull> Clone for Nullable<ST>
[src]
fn clone(&self) -> Nullable<ST>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more