pub struct OrderBy {
pub expr: Expr,
pub direction: OrderDirection,
pub nulls: Option<NullsOrder>,
}Expand description
ORDER BY clause.
Fields§
§expr: Expr§direction: OrderDirection§nulls: Option<NullsOrder>Implementations§
Source§impl OrderBy
impl OrderBy
Sourcepub fn nulls_first(self) -> Self
pub fn nulls_first(self) -> Self
Set NULLS FIRST.
Sourcepub fn nulls_last(self) -> Self
pub fn nulls_last(self) -> Self
Set NULLS LAST.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OrderBy
impl RefUnwindSafe for OrderBy
impl Send for OrderBy
impl Sync for OrderBy
impl Unpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).