pub struct StatsAggregation { /* private fields */ }
Implementations§
Source§impl StatsAggregation
impl StatsAggregation
pub fn new(name: &str) -> Self
pub fn set_field(self, field: &str) -> Self
pub fn set_script(self, script: &str) -> Self
pub fn set_missing(self, missing: i64) -> 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 StatsAggregation
impl AggregationTrait for StatsAggregation
Source§impl Default for StatsAggregation
impl Default for StatsAggregation
Source§fn default() -> StatsAggregation
fn default() -> StatsAggregation
Returns the “default value” for a type. Read more
Source§impl Serialize for StatsAggregation
impl Serialize for StatsAggregation
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 StatsAggregation
impl RefUnwindSafe for StatsAggregation
impl Send for StatsAggregation
impl Sync for StatsAggregation
impl Unpin for StatsAggregation
impl UnwindSafe for StatsAggregation
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