pub struct Aggregation {
pub function: String,
pub field: Option<String>,
pub alias: Option<String>,
pub modifier: Option<String>,
pub limit: Option<usize>,
pub percentile_values: Option<Vec<f64>>,
pub rank_values: Option<Vec<f64>>,
pub field_mutators: Option<Vec<Mutator>>,
}Expand description
Aggregation function specification
Fields§
§function: StringAggregation function name (count, sum, avg, etc.)
field: Option<String>Field to aggregate (None for count(*))
alias: Option<String>Alias for the result
modifier: Option<String>Modifier (top, bottom)
limit: Option<usize>Limit for modifier
percentile_values: Option<Vec<f64>>Percentile values (for percentile functions)
rank_values: Option<Vec<f64>>Rank values (for percentile_rank functions)
field_mutators: Option<Vec<Mutator>>Field mutators for the aggregation field
Trait Implementations§
Source§impl Clone for Aggregation
impl Clone for Aggregation
Source§fn clone(&self) -> Aggregation
fn clone(&self) -> Aggregation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Aggregation
impl Debug for Aggregation
Source§impl<'de> Deserialize<'de> for Aggregation
impl<'de> Deserialize<'de> for Aggregation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for Aggregation
impl PartialEq for Aggregation
Source§impl Serialize for Aggregation
impl Serialize for Aggregation
impl StructuralPartialEq for Aggregation
Auto Trait Implementations§
impl Freeze for Aggregation
impl RefUnwindSafe for Aggregation
impl Send for Aggregation
impl Sync for Aggregation
impl Unpin for Aggregation
impl UnwindSafe for Aggregation
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