diesel::sql_types

Trait Foldable

Source
pub trait Foldable: SingleValue {
    type Sum: SqlType + SingleValue;
    type Avg: SqlType + SingleValue;
}
Expand description

Represents SQL types which can be used with SUM and AVG

Required Associated Types§

Source

type Sum: SqlType + SingleValue

The SQL type of sum(this_type)

Source

type Avg: SqlType + SingleValue

The SQL type of avg(this_type)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§