Struct OrderByExpr
pub struct OrderByExpr {
pub expr: Expr,
pub order: Option<Direction>,
}Fields§
§expr: ExprThe expression
order: Option<Direction>Ascending or descending
Implementations§
§impl OrderByExpr
impl OrderByExpr
pub fn reverse(&mut self)
pub fn reverse(&mut self)
Flips the direction by which the query is ordered.
Trait Implementations§
§impl Clone for OrderByExpr
impl Clone for OrderByExpr
§fn clone(&self) -> OrderByExpr
fn clone(&self) -> OrderByExpr
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 more§impl Debug for OrderByExpr
impl Debug for OrderByExpr
§impl From<OrderByExpr> for OrderBy
impl From<OrderByExpr> for OrderBy
§fn from(value: OrderByExpr) -> OrderBy
fn from(value: OrderByExpr) -> OrderBy
Converts to this type from the input type.
§impl PartialEq for OrderByExpr
impl PartialEq for OrderByExpr
impl StructuralPartialEq for OrderByExpr
Auto Trait Implementations§
impl Freeze for OrderByExpr
impl RefUnwindSafe for OrderByExpr
impl Send for OrderByExpr
impl Sync for OrderByExpr
impl Unpin for OrderByExpr
impl UnwindSafe for OrderByExpr
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