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§fn clone(&self) -> Aggregation
fn clone(&self) -> Aggregation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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<Aggregation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Aggregation, <__D as Deserializer<'de>>::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
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
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request