pub struct TopHitsAggregation { /* private fields */ }
Implementations§
Source§impl TopHitsAggregation
impl TopHitsAggregation
pub fn new(name: &str) -> Self
pub fn add_sort(self, field: &str, order: &str) -> Self
pub fn set_size(self, size: i64) -> Self
pub fn set_script(self, script: &str) -> Self
pub fn set_aggregation<T>(self, aggregation: T) -> Selfwhere
T: AggregationTrait,
pub fn append_aggregation<T>(self, query: T) -> Selfwhere
T: AggregationTrait,
Trait Implementations§
Source§impl Default for TopHitsAggregation
impl Default for TopHitsAggregation
Source§fn default() -> TopHitsAggregation
fn default() -> TopHitsAggregation
Returns the “default value” for a type. Read more
Source§impl Serialize for TopHitsAggregation
impl Serialize for TopHitsAggregation
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for TopHitsAggregation
impl RefUnwindSafe for TopHitsAggregation
impl Send for TopHitsAggregation
impl Sync for TopHitsAggregation
impl Unpin for TopHitsAggregation
impl UnwindSafe for TopHitsAggregation
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