Struct elasticsearch_dsl::search::sort::FieldSort
source · pub struct FieldSort { /* private fields */ }
Expand description
Sorts search hits by other field values
Implementations§
source§impl FieldSort
impl FieldSort
sourcepub fn ascending<T>(field: T) -> Selfwhere
T: ToString,
pub fn ascending<T>(field: T) -> Selfwhere
T: ToString,
Creates an instance of FieldSort by ascending order
sourcepub fn descending<T>(field: T) -> Selfwhere
T: ToString,
pub fn descending<T>(field: T) -> Selfwhere
T: ToString,
Creates an instance of FieldSort by descending order
sourcepub fn unmapped_type<T>(self, unmapped_type: T) -> Selfwhere
T: ToString,
pub fn unmapped_type<T>(self, unmapped_type: T) -> Selfwhere
T: ToString,
Fallback type if mapping is not defined
Trait Implementations§
source§impl IntoIterator for FieldSort
impl IntoIterator for FieldSort
source§impl PartialEq for FieldSort
impl PartialEq for FieldSort
impl StructuralPartialEq for FieldSort
Auto Trait Implementations§
impl RefUnwindSafe for FieldSort
impl Send for FieldSort
impl Sync for FieldSort
impl Unpin for FieldSort
impl UnwindSafe for FieldSort
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