pub struct QueryOrder { /* private fields */ }Expand description
The query order.
Implementations§
Source§impl QueryOrder
impl QueryOrder
Sourcepub fn new(field: impl Into<SharedString>, descending: bool) -> Self
pub fn new(field: impl Into<SharedString>, descending: bool) -> Self
Creates a new instance.
Sourcepub fn set_nulls_first(&mut self)
pub fn set_nulls_first(&mut self)
Sets the nulls first.
Sourcepub fn set_nulls_last(&mut self)
pub fn set_nulls_last(&mut self)
Sets the nulls last.
Sourcepub fn is_ascending(&self) -> bool
pub fn is_ascending(&self) -> bool
Returns true if the sort order is ascending.
Sourcepub fn is_descending(&self) -> bool
pub fn is_descending(&self) -> bool
Returns true if the sort order is descending.
Sourcepub fn nulls_first(&self) -> bool
pub fn nulls_first(&self) -> bool
Returns true if the nulls appear first.
Sourcepub fn nulls_last(&self) -> bool
pub fn nulls_last(&self) -> bool
Returns true if the nulls appear last.
Trait Implementations§
Source§impl Clone for QueryOrder
impl Clone for QueryOrder
Source§fn clone(&self) -> QueryOrder
fn clone(&self) -> QueryOrder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for QueryOrder
impl RefUnwindSafe for QueryOrder
impl Send for QueryOrder
impl Sync for QueryOrder
impl Unpin for QueryOrder
impl UnwindSafe for QueryOrder
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: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more