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
Sourcepub fn missing<T>(self, missing: T) -> Selfwhere
T: Serialize,
pub fn missing<T>(self, missing: T) -> Selfwhere
T: Serialize,
The missing parameter specifies how docs which are missing the sort field should be treated
Sourcepub fn nested(self, nested: NestedFieldSort) -> Self
pub fn nested(self, nested: NestedFieldSort) -> Self
Sorts search hits by fields that are inside one or more nested objects.
Trait Implementations§
Source§impl IntoIterator for FieldSort
impl IntoIterator for FieldSort
impl StructuralPartialEq for FieldSort
Auto Trait Implementations§
impl Freeze for FieldSort
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