pub trait Orderable {
    // Required methods
    fn desc(self) -> OrderBy;
    fn asc(self) -> OrderBy;
    fn nulls_first(self) -> OrderBy;
    fn nulls_last(self) -> OrderBy;
}
Expand description

Things that can have ORDER BY clause options applied to them

Required Methods§

source

fn desc(self) -> OrderBy

DESC sorting

source

fn asc(self) -> OrderBy

ASC sorting

source

fn nulls_first(self) -> OrderBy

Set NULLS FIRST option

source

fn nulls_last(self) -> OrderBy

Set NULLS LAST option

Implementors§

source§

impl<T> Orderable for Twhere T: Into<OrderBy>,