pub struct OrderByClause<'a> {
pub expr: SQL<'a, SQLiteValue<'a>>,
pub direction: OrderBy,
}Expand description
Represents an ORDER BY clause in a query
Fields§
§expr: SQL<'a, SQLiteValue<'a>>The expression to order by
direction: OrderByThe direction to sort (ASC or DESC)
Implementations§
Source§impl<'a> OrderByClause<'a>
impl<'a> OrderByClause<'a>
Sourcepub const fn new(expr: SQL<'a, SQLiteValue<'a>>, direction: OrderBy) -> Self
pub const fn new(expr: SQL<'a, SQLiteValue<'a>>, direction: OrderBy) -> Self
Creates a new ORDER BY clause
Trait Implementations§
Source§impl<'a> Clone for OrderByClause<'a>
impl<'a> Clone for OrderByClause<'a>
Source§fn clone(&self) -> OrderByClause<'a>
fn clone(&self) -> OrderByClause<'a>
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> Freeze for OrderByClause<'a>
impl<'a> !RefUnwindSafe for OrderByClause<'a>
impl<'a> Send for OrderByClause<'a>
impl<'a> Sync for OrderByClause<'a>
impl<'a> Unpin for OrderByClause<'a>
impl<'a> !UnwindSafe for OrderByClause<'a>
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