pub struct OrderDef {
pub expression: Option<Expr>,
pub collation: Option<Cow<'static, str>>,
pub direction: Option<OrderDirection>,
pub nulls: Option<NullsPosition>,
}Expand description
One sort key: expr [COLLATE c] [ASC | DESC | USING op] [NULLS FIRST | LAST].
From PostgreSQL 17:
ORDER BY expression [ ASC | DESC | USING operator ] [ NULLS { FIRST | LAST } ]COLLATE is formally part of the expression rather than of the sort key, but it
has to be written between the expression and the direction, so it lives here.
Fields§
§expression: Option<Expr>What to sort by.
collation: Option<Cow<'static, str>>A collation name, quoted on output.
direction: Option<OrderDirection>Ascending, descending, or by an operator.
nulls: Option<NullsPosition>Where nulls sort. Defaults, in every dialect, to whichever end the direction puts last.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for OrderDef
impl !UnwindSafe for OrderDef
impl Freeze for OrderDef
impl Send for OrderDef
impl Sync for OrderDef
impl Unpin for OrderDef
impl UnsafeUnpin for OrderDef
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