pub enum Aggregation {
Show 16 variants
Terms {
name: String,
field: String,
size: u32,
sub_aggregations: Vec<Aggregation>,
},
Histogram {
name: String,
field: String,
interval: ApproximateNumber,
min_doc_count: U64,
extended_bounds: Option<HistogramBounds>,
hard_bounds: Option<HistogramBounds>,
offset: ApproximateNumber,
missing: Option<ApproximateNumber>,
sub_aggregations: Vec<Aggregation>,
},
Cardinality {
name: String,
field: String,
},
Percentiles {
name: String,
field: String,
percents: Vec<ApproximateNumber>,
},
ApproximateCardinality {
name: String,
field: String,
precision: u32,
},
ApproximatePercentiles {
name: String,
field: String,
percents: Vec<ApproximateNumber>,
precision: u32,
},
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,
},
DateHistogram {
name: String,
field: String,
fixed_interval_millis: Option<U64>,
calendar_interval: Option<String>,
time_zone: Option<String>,
min_doc_count: U64,
extended_bounds: Option<DateHistogramBounds>,
hard_bounds: Option<DateHistogramBounds>,
offset_millis: I64,
missing: Option<I64>,
sub_aggregations: Vec<Aggregation>,
},
Composite {
name: String,
size: u32,
sources: Vec<String>,
after: Option<Cursor>,
sub_aggregations: Vec<Aggregation>,
},
Filter {
name: String,
query: Box<Query>,
sub_aggregations: Vec<Aggregation>,
},
Nested {
name: String,
path: String,
sub_aggregations: Vec<Aggregation>,
},
ReverseNested {
name: String,
path: Option<String>,
sub_aggregations: Vec<Aggregation>,
},
}Variants§
Terms
Histogram
Fields
§
interval: ApproximateNumber§
extended_bounds: Option<HistogramBounds>§
hard_bounds: Option<HistogramBounds>§
offset: ApproximateNumber§
missing: Option<ApproximateNumber>§
sub_aggregations: Vec<Aggregation>Cardinality
Percentiles
ApproximateCardinality
ApproximatePercentiles
Sum
Avg
Min
Max
Stats
DateHistogram
Fields
§
extended_bounds: Option<DateHistogramBounds>§
hard_bounds: Option<DateHistogramBounds>§
sub_aggregations: Vec<Aggregation>Composite
Fields
§
sub_aggregations: Vec<Aggregation>Filter
Nested
ReverseNested
Trait Implementations§
Source§impl Clone for Aggregation
impl Clone for Aggregation
Source§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 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