pub struct SortFields(pub IndexMap<String, SortOrder>);
Tuple Fields§
§0: IndexMap<String, SortOrder>
Implementations§
Source§impl SortFields
impl SortFields
pub fn new() -> Self
pub fn inner(&self) -> &IndexMap<String, SortOrder>
pub fn inner_mut(&mut self) -> &mut IndexMap<String, SortOrder>
pub fn ascending(&mut self, name: String) -> &mut Self
pub fn descending(&mut self, name: String) -> &mut Self
pub fn keep(&self, keys: Vec<String>) -> Self
pub fn remove(&self, keys: Vec<String>) -> Self
Trait Implementations§
Source§impl Clone for SortFields
impl Clone for SortFields
Source§fn clone(&self) -> SortFields
fn clone(&self) -> SortFields
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 moreSource§impl Debug for SortFields
impl Debug for SortFields
Source§impl Default for SortFields
impl Default for SortFields
Source§impl FromStr for SortFields
impl FromStr for SortFields
Source§impl PartialEq for SortFields
impl PartialEq for SortFields
impl StructuralPartialEq for SortFields
Auto Trait Implementations§
impl Freeze for SortFields
impl RefUnwindSafe for SortFields
impl Send for SortFields
impl Sync for SortFields
impl Unpin for SortFields
impl UnwindSafe for SortFields
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