Trait diesel::query_dsl::methods::OrderDsl

source ·
pub trait OrderDsl<Expr: Expression> {
    type Output;

    // Required method
    fn order(self, expr: Expr) -> Self::Output;
}
Expand description

The order method

This trait should not be relied on directly by most apps. Its behavior is provided by QueryDsl. However, you may need a where clause on this trait to call order from generic code.

Required Associated Types§

source

type Output

The type returned by .order.

Required Methods§

source

fn order(self, expr: Expr) -> Self::Output

See the trait documentation.

Implementors§

source§

impl<S, Expr> OrderDsl<Expr> for Alias<S>
where Expr: Expression, Self: AsQuery, <Self as AsQuery>::Query: OrderDsl<Expr>,

§

type Output = <<Alias<S> as AsQuery>::Query as OrderDsl<Expr>>::Output

source§

impl<T, Expr> OrderDsl<Expr> for T
where Expr: Expression, T: Table, T::Query: OrderDsl<Expr>,

§

type Output = <<T as AsQuery>::Query as OrderDsl<Expr>>::Output