pub trait Orderable<'a>where
Self: Sized,{
// Required method
fn order(self, order: Option<Order>) -> OrderDefinition<'a>;
// Provided methods
fn ascend(self) -> OrderDefinition<'a> { ... }
fn descend(self) -> OrderDefinition<'a> { ... }
fn ascend_nulls_first(self) -> OrderDefinition<'a> { ... }
fn ascend_nulls_last(self) -> OrderDefinition<'a> { ... }
fn descend_nulls_first(self) -> OrderDefinition<'a> { ... }
fn descend_nulls_last(self) -> OrderDefinition<'a> { ... }
}
Expand description
An item that can be used in the ORDER BY
statement
Required Methods§
sourcefn order(self, order: Option<Order>) -> OrderDefinition<'a>
fn order(self, order: Option<Order>) -> OrderDefinition<'a>
Order by self
in the given order
Provided Methods§
sourcefn ascend(self) -> OrderDefinition<'a>
fn ascend(self) -> OrderDefinition<'a>
Change the order to ASC
sourcefn descend(self) -> OrderDefinition<'a>
fn descend(self) -> OrderDefinition<'a>
Change the order to DESC
sourcefn ascend_nulls_first(self) -> OrderDefinition<'a>
fn ascend_nulls_first(self) -> OrderDefinition<'a>
Change the order to ASC NULLS FIRST
sourcefn ascend_nulls_last(self) -> OrderDefinition<'a>
fn ascend_nulls_last(self) -> OrderDefinition<'a>
Change the order to ASC NULLS LAST
sourcefn descend_nulls_first(self) -> OrderDefinition<'a>
fn descend_nulls_first(self) -> OrderDefinition<'a>
Change the order to DESC NULLS FIRST
sourcefn descend_nulls_last(self) -> OrderDefinition<'a>
fn descend_nulls_last(self) -> OrderDefinition<'a>
Change the order to ASC NULLS LAST
Object Safety§
This trait is not object safe.