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 Cidr

Available on crate feature postgres_backend only.
§

type Rhs = BigInt

§

type Output = Inet

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 Inet

Available on crate feature postgres_backend only.
§

type Rhs = BigInt

§

type Output = Inet

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 Sub for Timestamptz

Available on crate feature postgres_backend only.
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>

source§

impl<T> Sub for Unsigned<T>
where T: Sub,

Available on crate feature mysql_backend only.
§

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

§

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