pub struct OrderBy {
pub expr: Expr,
pub desc: bool,
pub nulls_first: Option<bool>,
pub collation: Option<String>,
}Fields§
§expr: Expr§desc: boolfalse = ASC (default), true = DESC.
nulls_first: Option<bool>v7.24 (mailrs round-16 A) — explicit NULLS FIRST /
NULLS LAST. None = PG default (NULLS LAST for ASC,
NULLS FIRST for DESC); the engine resolves the effective
value via nulls_first.unwrap_or(desc).
collation: Option<String>v7.39 (round 691) — an explicit COLLATE written on this key.
It lives here rather than in the expression for the same reason
desc does: at an ORDER BY key a collation is ordering
information, and nothing downstream of the sort needs it. A new
Expr variant would instead put a new arm on eval_expr, which
this repo has measured to overflow the debug stack.
None means none was written, and the key falls back to whatever
its COLUMN declares — which is every key that existed before this.
Trait Implementations§
impl StructuralPartialEq for OrderBy
Auto Trait Implementations§
impl Freeze for OrderBy
impl RefUnwindSafe for OrderBy
impl Send for OrderBy
impl Sync for OrderBy
impl Unpin for OrderBy
impl UnsafeUnpin for OrderBy
impl UnwindSafe for OrderBy
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