pub struct Ordered {
pub this: Expression,
pub desc: bool,
pub nulls_first: Option<bool>,
pub explicit_asc: bool,
pub with_fill: Option<Box<WithFill>>,
}Expand description
Represent an expression with sort direction and null ordering.
Used inside ORDER BY clauses, window frame ORDER BY, and index definitions.
When desc is false the sort is ascending. The nulls_first field
controls the NULLS FIRST / NULLS LAST modifier; None means unspecified
(database default).
Fields§
§this: ExpressionThe expression to sort by.
desc: boolWhether the sort direction is descending (true) or ascending (false).
nulls_first: Option<bool>Some(true) = NULLS FIRST, Some(false) = NULLS LAST, None = unspecified.
explicit_asc: boolWhether ASC was explicitly written (not just implied)
with_fill: Option<Box<WithFill>>ClickHouse WITH FILL clause
Implementations§
Source§impl Ordered
impl Ordered
pub fn asc(expr: Expression) -> Self
pub fn desc(expr: Expression) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Ordered
impl<'de> Deserialize<'de> for Ordered
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
impl StructuralPartialEq for Ordered
Auto Trait Implementations§
impl Freeze for Ordered
impl RefUnwindSafe for Ordered
impl Send for Ordered
impl Sync for Ordered
impl Unpin for Ordered
impl UnwindSafe for Ordered
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