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

pub struct ScriptedMetric<'a> { /* fields omitted */ }

Scripted method aggregation

Methods

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

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

pub fn with_init_script<T: Into<&'a str>>(self, val: T) -> Self[src]

pub fn with_combine_script<T: Into<&'a str>>(self, val: T) -> Self[src]

pub fn with_reduce_script<T: Into<&'a str>>(self, val: T) -> Self[src]

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

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

pub fn with_lang<T: Into<&'a str>>(self, val: T) -> Self[src]

pub fn with_init_script_file<T: Into<&'a str>>(self, val: T) -> Self[src]

pub fn with_init_script_id<T: Into<&'a str>>(self, val: T) -> Self[src]

pub fn with_map_script_file<T: Into<&'a str>>(self, val: T) -> Self[src]

pub fn with_map_script_id<T: Into<&'a str>>(self, val: T) -> Self[src]

pub fn with_combine_script_file<T: Into<&'a str>>(self, val: T) -> Self[src]

pub fn with_combine_script_id<T: Into<&'a str>>(self, val: T) -> Self[src]

pub fn with_reduce_script_file<T: Into<&'a str>>(self, val: T) -> Self[src]

pub fn with_reduce_script_id<T: Into<&'a str>>(self, val: T) -> Self[src]

Trait Implementations

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

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

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

Auto Trait Implementations

impl<'a> Sync for ScriptedMetric<'a>

impl<'a> Send for ScriptedMetric<'a>

impl<'a> Unpin for ScriptedMetric<'a>

impl<'a> RefUnwindSafe for ScriptedMetric<'a>

impl<'a> UnwindSafe for ScriptedMetric<'a>

Blanket Implementations

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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Erased for T

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

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