pub enum SortField {
Id,
Score,
Key,
Count,
Doc,
Field(String),
}
Expand description
Allows you to add one or more sorts on specific fields. Each sort can be reversed as well. The sort is defined on a per field level.
Variants
Id
Sort by _id
field
Score
Sort by _score
Key
Sort by key within aggregations
Count
Sort by count within aggregations,
Doc
Sort by index order
Field(String)
Sorts by a given field name
Trait Implementations
impl Eq for SortField
impl StructuralEq for SortField
impl StructuralPartialEq for SortField
Auto Trait Implementations
impl RefUnwindSafe for SortField
impl Send for SortField
impl Sync for SortField
impl Unpin for SortField
impl UnwindSafe for SortField
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