pub struct FieldSort { /* private fields */ }Expand description
Sorts search hits by other field values
Implementations§
Source§impl<'de> FieldSort
impl<'de> FieldSort
pub fn deserialize<__D>(__deserializer: __D) -> Result<FieldSort, __D::Error>where
__D: Deserializer<'de>,
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<'de> Deserialize<'de> for FieldSort
impl<'de> Deserialize<'de> for FieldSort
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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 UnsafeUnpin 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