pub struct SumAggregation { /* private fields */ }
Implementations
sourceimpl SumAggregation
impl SumAggregation
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,
Trait Implementations
sourceimpl AggregationTrait for SumAggregation
impl AggregationTrait for SumAggregation
sourceimpl Default for SumAggregation
impl Default for SumAggregation
sourcefn default() -> SumAggregation
fn default() -> SumAggregation
Returns the “default value” for a type. Read more
sourceimpl Serialize for SumAggregation
impl Serialize for SumAggregation
sourcefn 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 RefUnwindSafe for SumAggregation
impl Send for SumAggregation
impl Sync for SumAggregation
impl Unpin for SumAggregation
impl UnwindSafe for SumAggregation
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more