Struct elasticsearch_dsl::search::aggregations::params::TermsOrder
source · [−]pub struct TermsOrder(_);
Expand description
Terms Aggregation sorting criterion
Implementations
sourceimpl TermsOrder
impl TermsOrder
sourcepub fn new<T>(key: T, order: SortOrder) -> Self where
T: ToString,
pub fn new<T>(key: T, order: SortOrder) -> Self where
T: ToString,
Creates an instance of TermsOrder
key
- Key to sort byorder
- Sorting order
sourcepub fn ascending<T>(key: T) -> Self where
T: ToString,
pub fn ascending<T>(key: T) -> Self where
T: ToString,
Sorts terms by a given key in ascending order
sourcepub fn descending<T>(key: T) -> Self where
T: ToString,
pub fn descending<T>(key: T) -> Self where
T: ToString,
Sorts terms by a given key in descending order
sourcepub fn count_ascending() -> Self
pub fn count_ascending() -> Self
Sorts terms by count ascending
sourcepub fn count_descending() -> Self
pub fn count_descending() -> Self
Sorts terms by count descending
sourcepub fn key_ascending() -> Self
pub fn key_ascending() -> Self
Sorts terms by count ascending
sourcepub fn key_descending() -> Self
pub fn key_descending() -> Self
Sorts terms by count descending
Trait Implementations
sourceimpl Clone for TermsOrder
impl Clone for TermsOrder
sourcefn clone(&self) -> TermsOrder
fn clone(&self) -> TermsOrder
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 TermsOrder
impl Debug for TermsOrder
sourceimpl From<TermsOrder> for TermsOrderCollection
impl From<TermsOrder> for TermsOrderCollection
sourcefn from(value: TermsOrder) -> Self
fn from(value: TermsOrder) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<TermsOrder> for TermsOrder
impl PartialEq<TermsOrder> for TermsOrder
sourcefn eq(&self, other: &TermsOrder) -> bool
fn eq(&self, other: &TermsOrder) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &TermsOrder) -> bool
fn ne(&self, other: &TermsOrder) -> bool
This method tests for !=
.
sourceimpl Serialize for TermsOrder
impl Serialize for TermsOrder
impl StructuralPartialEq for TermsOrder
Auto Trait Implementations
impl RefUnwindSafe for TermsOrder
impl Send for TermsOrder
impl Sync for TermsOrder
impl Unpin for TermsOrder
impl UnwindSafe for TermsOrder
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