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§
Trait Implementations§
impl Copy for SortOrder
impl Eq for SortOrder
impl StructuralPartialEq for SortOrder
Auto Trait Implementations§
impl Freeze for SortOrder
impl RefUnwindSafe for SortOrder
impl Send for SortOrder
impl Sync for SortOrder
impl Unpin for SortOrder
impl UnwindSafe for SortOrder
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