Trait diesel::sql_types::ops::Sub

source ·
pub trait Sub {
    type Rhs: SqlType;
    type Output: SqlType;
}
Expand description

Represents SQL types which can be subtracted.

Required Associated Types§

source

type Rhs: SqlType

The SQL type which can be subtracted from this one

source

type Output: SqlType

The SQL type of the result of subtracting Rhs from Self

Implementors§

source§

impl Sub for BigInt

source§

impl Sub for Date

source§

impl Sub for Double

source§

impl Sub for Float

§

type Rhs = Float

§

type Output = Float

source§

impl Sub for Integer

source§

impl Sub for Interval

source§

impl Sub for Numeric

source§

impl Sub for SmallInt

source§

impl Sub for Time

source§

impl Sub for Timestamp

source§

impl<T> Sub for Nullable<T>where T: Sub + SqlType<IsNull = NotNull>, T::Rhs: SqlType<IsNull = NotNull>, T::Output: SqlType<IsNull = NotNull>,

§

type Rhs = Nullable<<T as Sub>::Rhs>

§

type Output = Nullable<<T as Sub>::Output>