pub struct SortCollection(/* private fields */);
Expand description
A sorting criteria
Implementations§
Source§impl SortCollection
impl SortCollection
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new instance of SortCollection
Sourcepub fn ascending<T>(self, field: T) -> Selfwhere
T: ToString,
pub fn ascending<T>(self, field: T) -> Selfwhere
T: ToString,
Add a field to sort by ascending order
Sourcepub fn descending<T>(self, field: T) -> Selfwhere
T: ToString,
pub fn descending<T>(self, field: T) -> Selfwhere
T: ToString,
Add a field to sort by descending order
Trait Implementations§
Source§impl Clone for SortCollection
impl Clone for SortCollection
Source§fn clone(&self) -> SortCollection
fn clone(&self) -> SortCollection
Returns a copy 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 moreSource§impl Debug for SortCollection
impl Debug for SortCollection
Source§impl Default for SortCollection
impl Default for SortCollection
Source§fn default() -> SortCollection
fn default() -> SortCollection
Returns the “default value” for a type. Read more
Source§impl IntoIterator for SortCollection
impl IntoIterator for SortCollection
Source§impl PartialEq for SortCollection
impl PartialEq for SortCollection
Source§impl Serialize for SortCollection
impl Serialize for SortCollection
impl StructuralPartialEq for SortCollection
Auto Trait Implementations§
impl Freeze for SortCollection
impl RefUnwindSafe for SortCollection
impl Send for SortCollection
impl Sync for SortCollection
impl Unpin for SortCollection
impl UnwindSafe for SortCollection
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