Enum rs_es::operations::search::aggregations::Aggregation
[−]
[src]
pub enum Aggregation<'a> { Metrics(MetricsAggregation<'a>), Bucket(BucketAggregation<'a>, Option<Aggregations<'a>>), }
Aggregations are either metrics or bucket-based aggregations
Variants
Metrics(MetricsAggregation<'a>)
A metric aggregation (e.g. min)
Bucket(BucketAggregation<'a>, Option<Aggregations<'a>>)
A bucket aggregation, groups data into buckets and optionally applies sub-aggregations
Trait Implementations
impl<'a> From<Min<'a>> for Aggregation<'a>
[src]
fn from(from: Min<'a>) -> Aggregation<'a>
Performs the conversion.
impl<'a> From<Max<'a>> for Aggregation<'a>
[src]
fn from(from: Max<'a>) -> Aggregation<'a>
Performs the conversion.
impl<'a> From<Sum<'a>> for Aggregation<'a>
[src]
fn from(from: Sum<'a>) -> Aggregation<'a>
Performs the conversion.
impl<'a> From<Avg<'a>> for Aggregation<'a>
[src]
fn from(from: Avg<'a>) -> Aggregation<'a>
Performs the conversion.
impl<'a> From<Stats<'a>> for Aggregation<'a>
[src]
fn from(from: Stats<'a>) -> Aggregation<'a>
Performs the conversion.
impl<'a> From<ExtendedStats<'a>> for Aggregation<'a>
[src]
fn from(from: ExtendedStats<'a>) -> Aggregation<'a>
Performs the conversion.
impl<'a> From<ValueCount<'a>> for Aggregation<'a>
[src]
fn from(from: ValueCount<'a>) -> Aggregation<'a>
Performs the conversion.
impl<'a> From<Percentiles<'a>> for Aggregation<'a>
[src]
fn from(from: Percentiles<'a>) -> Aggregation<'a>
Performs the conversion.
impl<'a> From<PercentileRanks<'a>> for Aggregation<'a>
[src]
fn from(from: PercentileRanks<'a>) -> Aggregation<'a>
Performs the conversion.
impl<'a> From<Cardinality<'a>> for Aggregation<'a>
[src]
fn from(from: Cardinality<'a>) -> Aggregation<'a>
Performs the conversion.
impl<'a> From<(Global<'a>, Aggregations<'a>)> for Aggregation<'a>
[src]
fn from(from: (Global<'a>, Aggregations<'a>)) -> Aggregation<'a>
Performs the conversion.
impl<'a> From<Global<'a>> for Aggregation<'a>
[src]
fn from(from: Global<'a>) -> Aggregation<'a>
Performs the conversion.
impl<'a> From<(Filter<'a>, Aggregations<'a>)> for Aggregation<'a>
[src]
fn from(from: (Filter<'a>, Aggregations<'a>)) -> Aggregation<'a>
Performs the conversion.
impl<'a> From<Filter<'a>> for Aggregation<'a>
[src]
fn from(from: Filter<'a>) -> Aggregation<'a>
Performs the conversion.
impl<'a> From<(Filters<'a>, Aggregations<'a>)> for Aggregation<'a>
[src]
fn from(from: (Filters<'a>, Aggregations<'a>)) -> Aggregation<'a>
Performs the conversion.
impl<'a> From<Filters<'a>> for Aggregation<'a>
[src]
fn from(from: Filters<'a>) -> Aggregation<'a>
Performs the conversion.
impl<'a> From<(Missing<'a>, Aggregations<'a>)> for Aggregation<'a>
[src]
fn from(from: (Missing<'a>, Aggregations<'a>)) -> Aggregation<'a>
Performs the conversion.
impl<'a> From<Missing<'a>> for Aggregation<'a>
[src]
fn from(from: Missing<'a>) -> Aggregation<'a>
Performs the conversion.
impl<'a> From<(Nested<'a>, Aggregations<'a>)> for Aggregation<'a>
[src]
fn from(from: (Nested<'a>, Aggregations<'a>)) -> Aggregation<'a>
Performs the conversion.
impl<'a> From<Nested<'a>> for Aggregation<'a>
[src]
fn from(from: Nested<'a>) -> Aggregation<'a>
Performs the conversion.
impl<'a> From<(ReverseNested<'a>, Aggregations<'a>)> for Aggregation<'a>
[src]
fn from(from: (ReverseNested<'a>, Aggregations<'a>)) -> Aggregation<'a>
Performs the conversion.
impl<'a> From<ReverseNested<'a>> for Aggregation<'a>
[src]
fn from(from: ReverseNested<'a>) -> Aggregation<'a>
Performs the conversion.
impl<'a> From<(Children<'a>, Aggregations<'a>)> for Aggregation<'a>
[src]
fn from(from: (Children<'a>, Aggregations<'a>)) -> Aggregation<'a>
Performs the conversion.
impl<'a> From<Children<'a>> for Aggregation<'a>
[src]
fn from(from: Children<'a>) -> Aggregation<'a>
Performs the conversion.
impl<'a> From<(Terms<'a>, Aggregations<'a>)> for Aggregation<'a>
[src]
fn from(from: (Terms<'a>, Aggregations<'a>)) -> Aggregation<'a>
Performs the conversion.
impl<'a> From<Terms<'a>> for Aggregation<'a>
[src]
fn from(from: Terms<'a>) -> Aggregation<'a>
Performs the conversion.
impl<'a> From<(Range<'a>, Aggregations<'a>)> for Aggregation<'a>
[src]
fn from(from: (Range<'a>, Aggregations<'a>)) -> Aggregation<'a>
Performs the conversion.
impl<'a> From<Range<'a>> for Aggregation<'a>
[src]
fn from(from: Range<'a>) -> Aggregation<'a>
Performs the conversion.
impl<'a> From<(DateRange<'a>, Aggregations<'a>)> for Aggregation<'a>
[src]
fn from(from: (DateRange<'a>, Aggregations<'a>)) -> Aggregation<'a>
Performs the conversion.
impl<'a> From<DateRange<'a>> for Aggregation<'a>
[src]
fn from(from: DateRange<'a>) -> Aggregation<'a>
Performs the conversion.
impl<'a> From<(Histogram<'a>, Aggregations<'a>)> for Aggregation<'a>
[src]
fn from(from: (Histogram<'a>, Aggregations<'a>)) -> Aggregation<'a>
Performs the conversion.
impl<'a> From<Histogram<'a>> for Aggregation<'a>
[src]
fn from(from: Histogram<'a>) -> Aggregation<'a>
Performs the conversion.
impl<'a> From<(DateHistogram<'a>, Aggregations<'a>)> for Aggregation<'a>
[src]
fn from(from: (DateHistogram<'a>, Aggregations<'a>)) -> Aggregation<'a>
Performs the conversion.
impl<'a> From<DateHistogram<'a>> for Aggregation<'a>
[src]
fn from(from: DateHistogram<'a>) -> Aggregation<'a>
Performs the conversion.
impl<'a> From<(GeoDistance<'a>, Aggregations<'a>)> for Aggregation<'a>
[src]
fn from(from: (GeoDistance<'a>, Aggregations<'a>)) -> Aggregation<'a>
Performs the conversion.
impl<'a> From<GeoDistance<'a>> for Aggregation<'a>
[src]
fn from(from: GeoDistance<'a>) -> Aggregation<'a>
Performs the conversion.
impl<'a> From<(GeohashGrid<'a>, Aggregations<'a>)> for Aggregation<'a>
[src]
fn from(from: (GeohashGrid<'a>, Aggregations<'a>)) -> Aggregation<'a>
Performs the conversion.
impl<'a> From<GeohashGrid<'a>> for Aggregation<'a>
[src]
fn from(from: GeohashGrid<'a>) -> Aggregation<'a>
Performs the conversion.
impl<'a> Debug for Aggregation<'a>
[src]
impl<'a> Serialize for Aggregation<'a>
[src]
fn serialize<S>(&self, serializer: &mut S) -> Result<(), S::Error> where S: Serializer
Serializes this value into this serializer.