Skip to main content

OrderColumn

Trait OrderColumn 

Source
pub trait OrderColumn<'a, QS, DB>: Sized {
    // Required method
    fn ordering(self, sort_key: SortKey) -> BoxedOrdering<'a, QS, DB>;
}
Expand description

A Diesel column a model’s sort keys can order by.

Blanket-implemented over ordering, for every column of the table.

Required Methods§

Source

fn ordering(self, sort_key: SortKey) -> BoxedOrdering<'a, QS, DB>

See ordering.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<'a, C, QS, DB> OrderColumn<'a, QS, DB> for C
where DB: Backend, C: ExpressionMethods, Asc<C>: BoxableExpression<QS, DB, SqlType = NotSelectable> + 'a, Desc<C>: BoxableExpression<QS, DB, SqlType = NotSelectable> + 'a,