pub struct NestedFieldSort { /* private fields */ }
Expand description
Sorts search hits by fields that are inside one or more nested objects.
Implementations§
Source§impl NestedFieldSort
impl NestedFieldSort
Sourcepub fn path<T>(path: T) -> Selfwhere
T: ToString,
pub fn path<T>(path: T) -> Selfwhere
T: ToString,
Creates an instance of NestedFieldSort
Sourcepub fn filter<T>(self, filter: T) -> Self
pub fn filter<T>(self, filter: T) -> Self
A filter that the inner objects inside the nested path should match with in order for its field values to be taken into account by sorting.
Sourcepub fn max_children(self, max_children: u32) -> Self
pub fn max_children(self, max_children: u32) -> Self
The maximum number of children to consider per root document when picking the sort value.
Sourcepub fn nested(self, nested: NestedFieldSort) -> Self
pub fn nested(self, nested: NestedFieldSort) -> Self
Same as top-level nested but applies to another nested path within the current nested object.
Trait Implementations§
Source§impl Clone for NestedFieldSort
impl Clone for NestedFieldSort
Source§fn clone(&self) -> NestedFieldSort
fn clone(&self) -> NestedFieldSort
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for NestedFieldSort
impl Debug for NestedFieldSort
Source§impl Default for NestedFieldSort
impl Default for NestedFieldSort
Source§fn default() -> NestedFieldSort
fn default() -> NestedFieldSort
Returns the “default value” for a type. Read more
Source§impl PartialEq for NestedFieldSort
impl PartialEq for NestedFieldSort
Source§impl Serialize for NestedFieldSort
impl Serialize for NestedFieldSort
impl StructuralPartialEq for NestedFieldSort
Auto Trait Implementations§
impl Freeze for NestedFieldSort
impl RefUnwindSafe for NestedFieldSort
impl Send for NestedFieldSort
impl Sync for NestedFieldSort
impl Unpin for NestedFieldSort
impl UnwindSafe for NestedFieldSort
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