Struct elasticsearch_dsl::search::sort::SortCollection
source · [−]pub struct SortCollection(_);Expand description
A sorting criteria
Implementations
sourceimpl SortCollection
impl SortCollection
sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new instance of SortCollection
sourcepub fn extend<T>(&mut self, sort: T)where
T: IntoIterator,
T::Item: Into<Sort>,
pub fn extend<T>(&mut self, sort: T)where
T: IntoIterator,
T::Item: Into<Sort>,
Extends sorting collection
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
sourceimpl Clone for SortCollection
impl Clone for SortCollection
sourcefn clone(&self) -> SortCollection
fn clone(&self) -> SortCollection
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for SortCollection
impl Debug for SortCollection
sourceimpl Default for SortCollection
impl Default for SortCollection
sourcefn default() -> SortCollection
fn default() -> SortCollection
Returns the “default value” for a type. Read more
sourceimpl IntoIterator for SortCollection
impl IntoIterator for SortCollection
sourceimpl PartialEq<SortCollection> for SortCollection
impl PartialEq<SortCollection> for SortCollection
sourcefn eq(&self, other: &SortCollection) -> bool
fn eq(&self, other: &SortCollection) -> bool
sourceimpl Serialize for SortCollection
impl Serialize for SortCollection
impl StructuralPartialEq for SortCollection
Auto Trait Implementations
impl RefUnwindSafe for SortCollection
impl Send for SortCollection
impl Sync for SortCollection
impl Unpin for SortCollection
impl UnwindSafe for SortCollection
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more