Struct sqlparser::ast::OrderByExpr
source · pub struct OrderByExpr {
pub expr: Expr,
pub asc: Option<bool>,
pub nulls_first: Option<bool>,
}
Expand description
An ORDER BY
expression
Fields§
§expr: Expr
§asc: Option<bool>
Optional ASC
or DESC
nulls_first: Option<bool>
Optional NULLS FIRST
or NULLS LAST
Trait Implementations§
source§impl Clone for OrderByExpr
impl Clone for OrderByExpr
source§fn clone(&self) -> OrderByExpr
fn clone(&self) -> OrderByExpr
Returns a copy 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 moresource§impl Debug for OrderByExpr
impl Debug for OrderByExpr
source§impl Display for OrderByExpr
impl Display for OrderByExpr
source§impl Hash for OrderByExpr
impl Hash for OrderByExpr
source§impl Ord for OrderByExpr
impl Ord for OrderByExpr
source§fn cmp(&self, other: &OrderByExpr) -> Ordering
fn cmp(&self, other: &OrderByExpr) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for OrderByExpr
impl PartialEq for OrderByExpr
source§fn eq(&self, other: &OrderByExpr) -> bool
fn eq(&self, other: &OrderByExpr) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for OrderByExpr
impl PartialOrd for OrderByExpr
source§fn partial_cmp(&self, other: &OrderByExpr) -> Option<Ordering>
fn partial_cmp(&self, other: &OrderByExpr) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for OrderByExpr
impl StructuralEq for OrderByExpr
impl StructuralPartialEq for OrderByExpr
Auto Trait Implementations§
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