pub struct FieldSort { /* private fields */ }
Expand description
Sorts search hits by other field values
Implementations
sourceimpl FieldSort
impl FieldSort
sourcepub fn ascending<T>(field: T) -> Self where
T: ToString,
pub fn ascending<T>(field: T) -> Self where
T: ToString,
Creates an instance of FieldSort by ascending order
sourcepub fn descending<T>(field: T) -> Self where
T: ToString,
pub fn descending<T>(field: T) -> Self where
T: ToString,
Creates an instance of FieldSort by descending order
sourcepub fn unmapped_type<T>(self, unmapped_type: T) -> Self where
T: ToString,
pub fn unmapped_type<T>(self, unmapped_type: T) -> Self where
T: ToString,
Fallback type if mapping is not defined
sourcepub fn format<T>(self, format: T) -> Self where
T: ToString,
pub fn format<T>(self, format: T) -> Self where
T: ToString,
Optional format for datetime sorts
Trait Implementations
sourceimpl IntoIterator for FieldSort
impl IntoIterator 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
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