Enum elasticsearch_dsl::search::sort::SortOrder [−][src]
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
Sort in ascending order
Sort in descending order
Trait Implementations
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for SortOrder
impl UnwindSafe for SortOrder
Blanket Implementations
Mutably borrows from an owned value. Read more