Trait diesel::sql_types::ops::Add

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

Represents SQL types which can be added.

Required Associated Types§

source

type Rhs: SqlType

The SQL type which can be added to this one

source

type Output: SqlType

The SQL type of the result of adding Rhs to Self

Implementors§

source§

impl Add for BigInt

source§

impl Add for Cidr

Available on crate feature postgres_backend only.
§

type Rhs = BigInt

§

type Output = Inet

source§

impl Add for Date

source§

impl Add for Double

source§

impl Add for Float

§

type Rhs = Float

§

type Output = Float

source§

impl Add for Inet

Available on crate feature postgres_backend only.
§

type Rhs = BigInt

§

type Output = Inet

source§

impl Add for Integer

source§

impl Add for Interval

source§

impl Add for Numeric

source§

impl Add for SmallInt

source§

impl Add for Time

source§

impl Add for Timestamp

source§

impl Add for Timestamptz

Available on crate feature postgres_backend only.
source§

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

§

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

§

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

source§

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

Available on crate feature mysql_backend only.
§

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

§

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