pub enum Sort {
SpecialField(SortSpecialField),
Field(String),
FieldSort(FieldSort),
GeoDistanceSort(GeoDistanceSort),
ScriptSort(ScriptSort),
}
Expand description
Sorting criterion
Variants
SpecialField(SortSpecialField)
Special sort field,
Field(String)
Sorts by field name
FieldSort(FieldSort)
Sorts by field name with finer control
GeoDistanceSort(GeoDistanceSort)
Sorts by a geo distance
ScriptSort(ScriptSort)
Sort by a script
Trait Implementations
sourceimpl From<GeoDistanceSort> for Sort
impl From<GeoDistanceSort> for Sort
sourcefn from(value: GeoDistanceSort) -> Self
fn from(value: GeoDistanceSort) -> Self
Converts to this type from the input type.
sourceimpl From<ScriptSort> for Sort
impl From<ScriptSort> for Sort
sourcefn from(value: ScriptSort) -> Self
fn from(value: ScriptSort) -> Self
Converts to this type from the input type.
sourceimpl From<SortSpecialField> for Sort
impl From<SortSpecialField> for Sort
sourcefn from(value: SortSpecialField) -> Self
fn from(value: SortSpecialField) -> Self
Converts to this type from the input type.
sourceimpl IntoIterator for Sort
impl IntoIterator for Sort
impl StructuralPartialEq for Sort
Auto Trait Implementations
impl RefUnwindSafe for Sort
impl Send for Sort
impl Sync for Sort
impl Unpin for Sort
impl UnwindSafe for Sort
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