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

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]

pub fn new() -> 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"));

pub fn add<A: Into<Aggregation<'a>>>(&mut self, key: &'a str, val: A)[src]

Add an aggregation to the set of aggregations

Trait Implementations

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

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

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

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

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

Auto Trait Implementations

impl<'a> RefUnwindSafe for Aggregations<'a>

impl<'a> Send for Aggregations<'a>

impl<'a> Sync for Aggregations<'a>

impl<'a> Unpin for Aggregations<'a>

impl<'a> UnwindSafe for Aggregations<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err