pub struct Collapse { /* private fields */ }
Expand description
Internal representation for collapse
Implementations§
Source§impl Collapse
impl Collapse
Sourcepub fn new<T>(field: T) -> Selfwhere
T: ToString,
pub fn new<T>(field: T) -> Selfwhere
T: ToString,
Creates an instance of Collapse
field
- Field you wish to collapse on
Sourcepub fn inner_hits<T>(self, inner_hits: T) -> Self
pub fn inner_hits<T>(self, inner_hits: T) -> Self
Add inner_hits
to Collapse
Sourcepub fn max_concurrent_group_searches(
self,
max_concurrent_group_searches: u64,
) -> Self
pub fn max_concurrent_group_searches( self, max_concurrent_group_searches: u64, ) -> Self
Add max_concurrent_group_searches
to Collapse
Trait Implementations§
impl StructuralPartialEq for Collapse
Auto Trait Implementations§
impl Freeze for Collapse
impl RefUnwindSafe for Collapse
impl Send for Collapse
impl Sync for Collapse
impl Unpin for Collapse
impl UnwindSafe for Collapse
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