[][src]Struct rs_es::operations::search::aggregations::metrics::Percentiles

pub struct Percentiles<'a>(_);

Percentiles aggregation, see: https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-percentile-aggregation.html

Examples

use rs_es::operations::search::aggregations::metrics::Percentiles;

let p1 = Percentiles::field("field_name").with_compression(100u64);
let p2 = Percentiles::field("field_name").with_percents(vec![10.0, 20.0]);

Methods

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

pub fn field(field: &'a str) -> Self[src]

pub fn script<S: Into<Script<'a>>>(script: S) -> Self[src]

pub fn with_script<S: Into<Script<'a>>>(self, script: S) -> Self[src]

pub fn with_missing<J: Into<JsonVal>>(self, missing: J) -> Self[src]

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

pub fn with_percents<T: Into<Vec<f64>>>(self, val: T) -> Self[src]

pub fn with_compression<T: Into<u64>>(self, val: T) -> Self[src]

Trait Implementations

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

impl<'a> From<Percentiles<'a>> for Aggregation<'a>[src]

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

Auto Trait Implementations

impl<'a> RefUnwindSafe for Percentiles<'a>

impl<'a> Send for Percentiles<'a>

impl<'a> Sync for Percentiles<'a>

impl<'a> Unpin for Percentiles<'a>

impl<'a> UnwindSafe for Percentiles<'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