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) -> Self where
T: ToString,
pub fn ascending<T>(self, field: T) -> Self where
T: ToString,
Add a field to sort by ascending order
sourcepub fn descending<T>(self, field: T) -> Self where
T: ToString,
pub fn descending<T>(self, field: T) -> Self where
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 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl 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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SortCollection) -> bool
fn ne(&self, other: &SortCollection) -> bool
This method tests for !=
.
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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