pub enum SortOrder {
Asc,
Desc,
}
Expand description
The order defaults to desc
when sorting on the _score
, and defaults to asc
when sorting on anything else.
https://www.elastic.co/guide/en/elasticsearch/reference/current/sort-search-results.html#_sort_order
Variants
Asc
Sort in ascending order
Desc
Sort in descending order
Trait Implementations
impl Copy for SortOrder
impl Eq for SortOrder
impl StructuralEq for SortOrder
impl StructuralPartialEq for SortOrder
Auto Trait Implementations
impl RefUnwindSafe for SortOrder
impl Send for SortOrder
impl Sync for SortOrder
impl Unpin for SortOrder
impl UnwindSafe for SortOrder
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