pub struct OrderBy {
pub expressions: Vec<Expr>,
}Expand description
ORDER BY a, b DESC
Fields§
§expressions: Vec<Expr>The sort keys, in precedence order. Usually OrderDefs, but a bare
expression is a sort key too.
Implementations§
Source§impl OrderBy
impl OrderBy
Sourcepub fn append_order(&mut self, order: impl IntoExpr)
pub fn append_order(&mut self, order: impl IntoExpr)
Append one sort key.
Sourcepub fn clear_order_by(&mut self)
pub fn clear_order_by(&mut self)
Drop every sort key. Needed because a mod may have to replace an inherited ordering rather than add to it.
Trait Implementations§
Source§impl Expression for OrderBy
impl Expression for OrderBy
Source§impl HasOrderBy for OrderBy
impl HasOrderBy for OrderBy
Source§fn order_by_mut(&mut self) -> &mut OrderBy
fn order_by_mut(&mut self) -> &mut OrderBy
The
ORDER BY clause to modify.Auto Trait Implementations§
impl !RefUnwindSafe for OrderBy
impl !UnwindSafe for OrderBy
impl Freeze for OrderBy
impl Send for OrderBy
impl Sync for OrderBy
impl Unpin for OrderBy
impl UnsafeUnpin 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