pub enum Aggregation {
Count {
name: String,
field: Option<String>,
},
Sum {
name: String,
field: String,
},
Avg {
name: String,
field: String,
},
Min {
name: String,
field: String,
},
Max {
name: String,
field: String,
},
Stats {
name: String,
field: String,
},
Terms {
name: String,
field: String,
size: Option<u32>,
},
Histogram {
name: String,
field: String,
interval: f64,
min: Option<f64>,
max: Option<f64>,
},
DateHistogram {
name: String,
field: String,
interval: String,
time_zone: Option<String>,
},
GeohashGrid {
name: String,
field: String,
precision: u8,
},
}Expand description
Single aggregation specification.
Variants§
Count
Count aggregation.
Fields
Sum
Sum aggregation.
Avg
Average aggregation.
Min
Min aggregation.
Max
Max aggregation.
Stats
Stats aggregation (count, sum, avg, min, max).
Terms
Terms aggregation (frequency count by value).
Fields
Histogram
Histogram aggregation (bucketed numeric values).
Fields
DateHistogram
Date histogram aggregation (bucketed temporal values).
Fields
GeohashGrid
Geohash grid aggregation (spatial bucketing).
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
Auto Trait Implementations§
impl Freeze for Aggregation
impl RefUnwindSafe for Aggregation
impl Send for Aggregation
impl Sync for Aggregation
impl Unpin for Aggregation
impl UnsafeUnpin 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