Trait Foldable
Other items indiesel::sql_types
pub trait Foldable { type Sum; type Avg; }
Represents SQL types which can be used with SUM and AVG
SUM
AVG
type Sum
The SQL type of sum(this_type)
sum(this_type)
type Avg
The SQL type of avg(this_type)
avg(this_type)
impl Foldable for Unsigned<BigInt>
type Sum = Nullable<Numeric>
type Avg = Nullable<Numeric>
impl Foldable for Unsigned<Integer>
type Sum = Nullable<Unsigned<BigInt>>
impl Foldable for Unsigned<SmallInt>
impl Foldable for BigInt
impl Foldable for Double
type Sum = Nullable<Double>
type Avg = Nullable<Double>
impl Foldable for Float
type Sum = Nullable<Float>
impl Foldable for Integer
type Sum = Nullable<BigInt>
impl Foldable for Interval
type Sum = Nullable<Interval>
type Avg = Nullable<Interval>
impl Foldable for Numeric
impl Foldable for SmallInt
impl<T> Foldable for Nullable<T> where T: Foldable + NotNull,
type Sum = T::Sum
type Avg = T::Avg