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

A metric aggregation (e.g. min)

Bucket

A bucket aggregation, groups data into buckets and optionally applies sub-aggregations

Trait Implementations

impl<'a> From<Min<'a>> for Aggregation<'a>

fn from(from: Min<'a>) -> Aggregation<'a>

impl<'a> From<Max<'a>> for Aggregation<'a>

fn from(from: Max<'a>) -> Aggregation<'a>

impl<'a> From<Sum<'a>> for Aggregation<'a>

fn from(from: Sum<'a>) -> Aggregation<'a>

impl<'a> From<Avg<'a>> for Aggregation<'a>

fn from(from: Avg<'a>) -> Aggregation<'a>

impl<'a> From<Stats<'a>> for Aggregation<'a>

fn from(from: Stats<'a>) -> Aggregation<'a>

impl<'a> From<ExtendedStats<'a>> for Aggregation<'a>

fn from(from: ExtendedStats<'a>) -> Aggregation<'a>

impl<'a> From<ValueCount<'a>> for Aggregation<'a>

fn from(from: ValueCount<'a>) -> Aggregation<'a>

impl<'a> From<Percentiles<'a>> for Aggregation<'a>

fn from(from: Percentiles<'a>) -> Aggregation<'a>

impl<'a> From<PercentileRanks<'a>> for Aggregation<'a>

fn from(from: PercentileRanks<'a>) -> Aggregation<'a>

impl<'a> From<Cardinality<'a>> for Aggregation<'a>

fn from(from: Cardinality<'a>) -> Aggregation<'a>

impl<'a> From<GeoBounds<'a>> for Aggregation<'a>

fn from(from: GeoBounds<'a>) -> Aggregation<'a>

impl<'a> From<(Global<'a>, Aggregations<'a>)> for Aggregation<'a>

fn from(from: (Global<'a>, Aggregations<'a>)) -> Aggregation<'a>

impl<'a> From<Global<'a>> for Aggregation<'a>

fn from(from: Global<'a>) -> Aggregation<'a>

impl<'a> From<(Filter<'a>, Aggregations<'a>)> for Aggregation<'a>

fn from(from: (Filter<'a>, Aggregations<'a>)) -> Aggregation<'a>

impl<'a> From<Filter<'a>> for Aggregation<'a>

fn from(from: Filter<'a>) -> Aggregation<'a>

impl<'a> From<(Filters<'a>, Aggregations<'a>)> for Aggregation<'a>

fn from(from: (Filters<'a>, Aggregations<'a>)) -> Aggregation<'a>

impl<'a> From<Filters<'a>> for Aggregation<'a>

fn from(from: Filters<'a>) -> Aggregation<'a>

impl<'a> From<(Missing<'a>, Aggregations<'a>)> for Aggregation<'a>

fn from(from: (Missing<'a>, Aggregations<'a>)) -> Aggregation<'a>

impl<'a> From<Missing<'a>> for Aggregation<'a>

fn from(from: Missing<'a>) -> Aggregation<'a>

impl<'a> From<(Nested<'a>, Aggregations<'a>)> for Aggregation<'a>

fn from(from: (Nested<'a>, Aggregations<'a>)) -> Aggregation<'a>

impl<'a> From<Nested<'a>> for Aggregation<'a>

fn from(from: Nested<'a>) -> Aggregation<'a>

impl<'a> From<(ReverseNested<'a>, Aggregations<'a>)> for Aggregation<'a>

fn from(from: (ReverseNested<'a>, Aggregations<'a>)) -> Aggregation<'a>

impl<'a> From<ReverseNested<'a>> for Aggregation<'a>

fn from(from: ReverseNested<'a>) -> Aggregation<'a>

impl<'a> From<(Children<'a>, Aggregations<'a>)> for Aggregation<'a>

fn from(from: (Children<'a>, Aggregations<'a>)) -> Aggregation<'a>

impl<'a> From<Children<'a>> for Aggregation<'a>

fn from(from: Children<'a>) -> Aggregation<'a>

impl<'a> From<(Terms<'a>, Aggregations<'a>)> for Aggregation<'a>

fn from(from: (Terms<'a>, Aggregations<'a>)) -> Aggregation<'a>

impl<'a> From<Terms<'a>> for Aggregation<'a>

fn from(from: Terms<'a>) -> Aggregation<'a>

impl<'a> From<(Range<'a>, Aggregations<'a>)> for Aggregation<'a>

fn from(from: (Range<'a>, Aggregations<'a>)) -> Aggregation<'a>

impl<'a> From<Range<'a>> for Aggregation<'a>

fn from(from: Range<'a>) -> Aggregation<'a>

impl<'a> From<(DateRange<'a>, Aggregations<'a>)> for Aggregation<'a>

fn from(from: (DateRange<'a>, Aggregations<'a>)) -> Aggregation<'a>

impl<'a> From<DateRange<'a>> for Aggregation<'a>

fn from(from: DateRange<'a>) -> Aggregation<'a>

impl<'a> From<(Histogram<'a>, Aggregations<'a>)> for Aggregation<'a>

fn from(from: (Histogram<'a>, Aggregations<'a>)) -> Aggregation<'a>

impl<'a> From<Histogram<'a>> for Aggregation<'a>

fn from(from: Histogram<'a>) -> Aggregation<'a>

impl<'a> From<(DateHistogram<'a>, Aggregations<'a>)> for Aggregation<'a>

fn from(from: (DateHistogram<'a>, Aggregations<'a>)) -> Aggregation<'a>

impl<'a> From<DateHistogram<'a>> for Aggregation<'a>

fn from(from: DateHistogram<'a>) -> Aggregation<'a>

impl<'a> From<(GeoDistance<'a>, Aggregations<'a>)> for Aggregation<'a>

fn from(from: (GeoDistance<'a>, Aggregations<'a>)) -> Aggregation<'a>

impl<'a> From<GeoDistance<'a>> for Aggregation<'a>

fn from(from: GeoDistance<'a>) -> Aggregation<'a>

impl<'a> From<(GeoHash<'a>, Aggregations<'a>)> for Aggregation<'a>

fn from(from: (GeoHash<'a>, Aggregations<'a>)) -> Aggregation<'a>

impl<'a> From<GeoHash<'a>> for Aggregation<'a>

fn from(from: GeoHash<'a>) -> Aggregation<'a>

impl<'a> ToJson for Aggregation<'a>

fn to_json(&self) -> Json

Derived Implementations

impl<'a> Debug for Aggregation<'a>

fn fmt(&self, __arg_0: &mut Formatter) -> Result