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

Methods

impl<'a> Aggregations<'a>
[src]

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

Examples

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>
[src]

Formats the value using the given formatter.

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

Performs the conversion.

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

Performs the conversion.