pub struct NestedProjection { /* private fields */ }Expand description
A request to shape one nested array in the results (via inner_hits).
Implementations§
Source§impl NestedProjection
impl NestedProjection
Sourcepub fn sort(self, sort: Sort) -> Self
pub fn sort(self, sort: Sort) -> Self
Order the returned elements. A field sort keeps just its key + order:
inside inner_hits the sort already runs within the nested document, so
any nested wrapper from a Sortable handle is dropped here.
Sourcepub fn sorts(self, sorts: impl IntoIterator<Item = Sort>) -> Self
pub fn sorts(self, sorts: impl IntoIterator<Item = Sort>) -> Self
Order the returned elements by several keys at once — e.g. from a
SortBuilder. Equivalent to repeated sort.
Trait Implementations§
Source§impl Clone for NestedProjection
impl Clone for NestedProjection
Source§fn clone(&self) -> NestedProjection
fn clone(&self) -> NestedProjection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for NestedProjection
impl RefUnwindSafe for NestedProjection
impl Send for NestedProjection
impl Sync for NestedProjection
impl Unpin for NestedProjection
impl UnsafeUnpin for NestedProjection
impl UnwindSafe for NestedProjection
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