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
Twhich implementsToSql<ST> Option<T>for anyTwhich implementsToSql<ST>
FromSql impls
Option<T>for anyTwhich implementsFromSql<ST>
Trait Implementations
impl Add for Nullable<SmallInt>[src]
type Rhs = Nullable<SmallInt>
The SQL type which can be added to this one
type Output = Nullable<SmallInt>
The SQL type of the result of adding Rhs to Self
impl Sub for Nullable<SmallInt>[src]
type Rhs = Nullable<SmallInt>
The SQL type which can be subtracted from this one
type Output = Nullable<SmallInt>
The SQL type of the result of subtracting Rhs from Self
impl Mul for Nullable<SmallInt>[src]
type Rhs = Nullable<SmallInt>
The SQL type which this can be multiplied by
type Output = Nullable<SmallInt>
The SQL type of the result of multiplying Self by Rhs
impl Div for Nullable<SmallInt>[src]
type Rhs = Nullable<SmallInt>
The SQL type which this one can be divided by
type Output = Nullable<SmallInt>
The SQL type of the result of dividing Self by Rhs
impl Add for Nullable<Integer>[src]
type Rhs = Nullable<Integer>
The SQL type which can be added to this one
type Output = Nullable<Integer>
The SQL type of the result of adding Rhs to Self
impl Sub for Nullable<Integer>[src]
type Rhs = Nullable<Integer>
The SQL type which can be subtracted from this one
type Output = Nullable<Integer>
The SQL type of the result of subtracting Rhs from Self
impl Mul for Nullable<Integer>[src]
type Rhs = Nullable<Integer>
The SQL type which this can be multiplied by
type Output = Nullable<Integer>
The SQL type of the result of multiplying Self by Rhs
impl Div for Nullable<Integer>[src]
type Rhs = Nullable<Integer>
The SQL type which this one can be divided by
type Output = Nullable<Integer>
The SQL type of the result of dividing Self by Rhs
impl Add for Nullable<BigInt>[src]
type Rhs = Nullable<BigInt>
The SQL type which can be added to this one
type Output = Nullable<BigInt>
The SQL type of the result of adding Rhs to Self
impl Sub for Nullable<BigInt>[src]
type Rhs = Nullable<BigInt>
The SQL type which can be subtracted from this one
type Output = Nullable<BigInt>
The SQL type of the result of subtracting Rhs from Self
impl Mul for Nullable<BigInt>[src]
type Rhs = Nullable<BigInt>
The SQL type which this can be multiplied by
type Output = Nullable<BigInt>
The SQL type of the result of multiplying Self by Rhs
impl Div for Nullable<BigInt>[src]
type Rhs = Nullable<BigInt>
The SQL type which this one can be divided by
type Output = Nullable<BigInt>
The SQL type of the result of dividing Self by Rhs
impl Add for Nullable<Float>[src]
type Rhs = Nullable<Float>
The SQL type which can be added to this one
type Output = Nullable<Float>
The SQL type of the result of adding Rhs to Self
impl Sub for Nullable<Float>[src]
type Rhs = Nullable<Float>
The SQL type which can be subtracted from this one
type Output = Nullable<Float>
The SQL type of the result of subtracting Rhs from Self
impl Mul for Nullable<Float>[src]
type Rhs = Nullable<Float>
The SQL type which this can be multiplied by
type Output = Nullable<Float>
The SQL type of the result of multiplying Self by Rhs
impl Div for Nullable<Float>[src]
type Rhs = Nullable<Float>
The SQL type which this one can be divided by
type Output = Nullable<Float>
The SQL type of the result of dividing Self by Rhs
impl Add for Nullable<Double>[src]
type Rhs = Nullable<Double>
The SQL type which can be added to this one
type Output = Nullable<Double>
The SQL type of the result of adding Rhs to Self
impl Sub for Nullable<Double>[src]
type Rhs = Nullable<Double>
The SQL type which can be subtracted from this one
type Output = Nullable<Double>
The SQL type of the result of subtracting Rhs from Self
impl Mul for Nullable<Double>[src]
type Rhs = Nullable<Double>
The SQL type which this can be multiplied by
type Output = Nullable<Double>
The SQL type of the result of multiplying Self by Rhs
impl Div for Nullable<Double>[src]
type Rhs = Nullable<Double>
The SQL type which this one can be divided by
type Output = Nullable<Double>
The SQL type of the result of dividing Self by Rhs
impl Add for Nullable<Numeric>[src]
type Rhs = Nullable<Numeric>
The SQL type which can be added to this one
type Output = Nullable<Numeric>
The SQL type of the result of adding Rhs to Self
impl Sub for Nullable<Numeric>[src]
type Rhs = Nullable<Numeric>
The SQL type which can be subtracted from this one
type Output = Nullable<Numeric>
The SQL type of the result of subtracting Rhs from Self
impl Mul for Nullable<Numeric>[src]
type Rhs = Nullable<Numeric>
The SQL type which this can be multiplied by
type Output = Nullable<Numeric>
The SQL type of the result of multiplying Self by Rhs
impl Div for Nullable<Numeric>[src]
type Rhs = Nullable<Numeric>
The SQL type which this one can be divided by
type Output = Nullable<Numeric>
The SQL type of the result of dividing Self by Rhs
impl Add for Nullable<Time>[src]
type Rhs = Nullable<Interval>
The SQL type which can be added to this one
type Output = Nullable<Time>
The SQL type of the result of adding Rhs to Self
impl Sub for Nullable<Time>[src]
type Rhs = Nullable<Interval>
The SQL type which can be subtracted from this one
type Output = Nullable<Time>
The SQL type of the result of subtracting Rhs from Self
impl Add for Nullable<Date>[src]
type Rhs = Nullable<Interval>
The SQL type which can be added to this one
type Output = Nullable<Timestamp>
The SQL type of the result of adding Rhs to Self
impl Sub for Nullable<Date>[src]
type Rhs = Nullable<Interval>
The SQL type which can be subtracted from this one
type Output = Nullable<Timestamp>
The SQL type of the result of subtracting Rhs from Self
impl Add for Nullable<Timestamp>[src]
type Rhs = Nullable<Interval>
The SQL type which can be added to this one
type Output = Nullable<Timestamp>
The SQL type of the result of adding Rhs to Self
impl Sub for Nullable<Timestamp>[src]
type Rhs = Nullable<Interval>
The SQL type which can be subtracted from this one
type Output = Nullable<Timestamp>
The SQL type of the result of subtracting Rhs from Self
impl<T: SqlOrd + NotNull> SqlOrd for Nullable<T>[src]
impl<T> QueryId for Nullable<T> where
T: QueryId + NotNull, [src]
T: QueryId + NotNull,
type QueryId = T::QueryId
fn has_static_query_id() -> bool[src]
fn query_id() -> Option<TypeId>[src]
impl<T> Foldable for Nullable<T> where
T: Foldable + NotNull, [src]
T: Foldable + NotNull,
impl<ST: Debug + NotNull> Debug for Nullable<ST>[src]
impl<ST: Clone + NotNull> Clone for Nullable<ST>[src]
fn clone(&self) -> Nullable<ST>[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more