pub enum OrderBy {
Asc,
Desc,
}Expand description
Sort direction for ORDER BY clauses
Variants§
Implementations§
Trait Implementations§
Source§impl<'a, V: SQLParam + 'a> ToSQL<'a, V> for OrderBy
impl<'a, V: SQLParam + 'a> ToSQL<'a, V> for OrderBy
fn to_sql(&self) -> SQL<'a, V>
Source§fn into_sql(self) -> SQL<'a, V>where
Self: Sized,
fn into_sql(self) -> SQL<'a, V>where
Self: Sized,
Consume self and return SQL without cloning.
Default delegates to
to_sql() (which clones). Types that own their SQL
(like SQL and SQLExpr) override this to avoid the clone.fn alias(&self, alias: &'static str) -> SQL<'a, V>
impl Copy for OrderBy
impl Eq for OrderBy
impl StructuralPartialEq for OrderBy
Auto Trait Implementations§
impl Freeze for OrderBy
impl RefUnwindSafe for OrderBy
impl Send for OrderBy
impl Sync for OrderBy
impl Unpin for OrderBy
impl UnwindSafe for OrderBy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more