[−][src]Struct rs_es::operations::search::aggregations::Aggregations
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]
fn default() -> 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]
fn from(from: Vec<(&'b str, Aggregation<'b>)>) -> 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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,