Trait quaint::ast::Orderable

source ·
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§

source

fn order(self, order: Option<Order>) -> OrderDefinition<'a>

Order by self in the given order

Provided Methods§

source

fn ascend(self) -> OrderDefinition<'a>

Change the order to ASC

source

fn descend(self) -> OrderDefinition<'a>

Change the order to DESC

source

fn ascend_nulls_first(self) -> OrderDefinition<'a>

Change the order to ASC NULLS FIRST

source

fn ascend_nulls_last(self) -> OrderDefinition<'a>

Change the order to ASC NULLS LAST

source

fn descend_nulls_first(self) -> OrderDefinition<'a>

Change the order to DESC NULLS FIRST

source

fn descend_nulls_last(self) -> OrderDefinition<'a>

Change the order to ASC NULLS LAST

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'a> Orderable<'a> for &'a str

source§

fn order(self, order: Option<Order>) -> OrderDefinition<'a>

source§

impl<'a> Orderable<'a> for (&'a str, &'a str)

source§

fn order(self, order: Option<Order>) -> OrderDefinition<'a>

Implementors§

source§

impl<'a> Orderable<'a> for Column<'a>