Struct elasticsearch_dsl::search::sort::SortCollection   
source · 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
source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
 
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)