pub struct OrderChain<S> { /* private fields */ }Expand description
One sort key under construction.
Implementations§
Source§impl<S> OrderChain<S>
impl<S> OrderChain<S>
Sourcepub fn asc(self) -> OrderChain<S>
pub fn asc(self) -> OrderChain<S>
ASC.
Sourcepub fn desc(self) -> OrderChain<S>
pub fn desc(self) -> OrderChain<S>
DESC.
Sourcepub fn using(self, operator: impl Into<Cow<'static, str>>) -> OrderChain<S>
pub fn using(self, operator: impl Into<Cow<'static, str>>) -> OrderChain<S>
USING <operator> — sort by a named <-like or >-like operator.
PostgreSQL-only, which is why OrderDirection is not a two-variant enum.
Sourcepub fn nulls_first(self) -> OrderChain<S>
pub fn nulls_first(self) -> OrderChain<S>
NULLS FIRST.
Sourcepub fn nulls_last(self) -> OrderChain<S>
pub fn nulls_last(self) -> OrderChain<S>
NULLS LAST.
Trait Implementations§
Source§impl<S: Clone> Clone for OrderChain<S>
impl<S: Clone> Clone for OrderChain<S>
Source§fn clone(&self) -> OrderChain<S>
fn clone(&self) -> OrderChain<S>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<S: Debug> Debug for OrderChain<S>
impl<S: Debug> Debug for OrderChain<S>
Auto Trait Implementations§
impl<S> !RefUnwindSafe for OrderChain<S>
impl<S> !UnwindSafe for OrderChain<S>
impl<S> Freeze for OrderChain<S>
impl<S> Send for OrderChain<S>where
S: Send,
impl<S> Sync for OrderChain<S>where
S: Sync,
impl<S> Unpin for OrderChain<S>where
S: Unpin,
impl<S> UnsafeUnpin for OrderChain<S>
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