pub struct OrderByClause<'a, V: SQLParam> {
pub expr: SQL<'a, V>,
pub direction: OrderBy,
}Expand description
Represents an ORDER BY clause in a query.
Fields§
§expr: SQL<'a, V>The expression to order by.
direction: OrderByThe direction to sort (ASC or DESC).
Implementations§
Trait Implementations§
Source§impl<'a, V: Clone + SQLParam> Clone for OrderByClause<'a, V>
impl<'a, V: Clone + SQLParam> Clone for OrderByClause<'a, V>
Source§fn clone(&self) -> OrderByClause<'a, V>
fn clone(&self) -> OrderByClause<'a, V>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a, V> Freeze for OrderByClause<'a, V>where
V: Freeze,
impl<'a, V> !RefUnwindSafe for OrderByClause<'a, V>
impl<'a, V> Send for OrderByClause<'a, V>
impl<'a, V> Sync for OrderByClause<'a, V>where
V: Sync,
impl<'a, V> Unpin for OrderByClause<'a, V>where
V: Unpin,
impl<'a, V> !UnwindSafe for OrderByClause<'a, V>
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