pub struct TermsAggregation { /* private fields */ }
Implementations§
Source§impl TermsAggregation
impl TermsAggregation
pub fn new(name: &str) -> Self
pub fn set_field(self, field: &str) -> Self
pub fn set_size(self, size: i64) -> Self
pub fn set_script(self, script: &str) -> Self
pub fn set_order(self, order_field: &str, order_value: &str) -> Self
pub fn set_include(self, include: &[&str]) -> Self
pub fn set_exclude(self, exclude: &[&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 AggregationTrait for TermsAggregation
impl AggregationTrait for TermsAggregation
Source§impl Default for TermsAggregation
impl Default for TermsAggregation
Source§fn default() -> TermsAggregation
fn default() -> TermsAggregation
Returns the “default value” for a type. Read more
Source§impl Serialize for TermsAggregation
impl Serialize for TermsAggregation
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 TermsAggregation
impl RefUnwindSafe for TermsAggregation
impl Send for TermsAggregation
impl Sync for TermsAggregation
impl Unpin for TermsAggregation
impl UnwindSafe for TermsAggregation
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