Struct rs_es::operations::search::aggregations::Aggregations [] [src]

pub struct Aggregations<'a>(_);

The set of aggregations

There are many ways of creating aggregations, either standalone or via a conversion trait


impl<'a> Aggregations<'a>

Create an empty-set of aggregations, individual aggregations should be added via the add method


use rs_es::operations::search::aggregations::Aggregations;
use rs_es::operations::search::aggregations::metrics::Min;

let mut aggs = Aggregations::new();
aggs.add("agg_name", Min::field("field_name"));

Add an aggregation to the set of aggregations

Trait Implementations

impl<'a> Debug for Aggregations<'a>

Formats the value using the given formatter.

impl<'b> From<Vec<(&'b str, Aggregation<'b>)>> for Aggregations<'b>

Performs the conversion.

impl<'a, A: Into<Aggregation<'a>>> From<(&'a str, A)> for Aggregations<'a>

Performs the conversion.