Struct sqlparser::ast::OrderByExpr
source · pub struct OrderByExpr {
pub expr: Expr,
pub asc: Option<bool>,
pub nulls_first: Option<bool>,
pub with_fill: Option<WithFill>,
}
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
with_fill: Option<WithFill>
Optional: WITH FILL
Supported by [ClickHouse syntax]: https://clickhouse.com/docs/en/sql-reference/statements/select/order-by#order-by-expr-with-fill-modifier
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<'de> Deserialize<'de> for OrderByExpr
impl<'de> Deserialize<'de> for OrderByExpr
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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§impl PartialOrd for OrderByExpr
impl PartialOrd for OrderByExpr
source§impl Serialize for OrderByExpr
impl Serialize for OrderByExpr
source§impl Visit for OrderByExpr
impl Visit for OrderByExpr
source§impl VisitMut for OrderByExpr
impl VisitMut for OrderByExpr
fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
impl Eq 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)