[][src]Struct elastic::client::requests::common::ScriptBuilder

pub struct ScriptBuilder<TParams> { /* fields omitted */ }

A builder for an update script that can be configured before sending.

Methods

impl ScriptBuilder<DefaultParams>[src]

pub fn new<TScript>(source: TScript) -> Self where
    TScript: ToString
[src]

Create a new script builder using the given source.

pub fn param<TKey, TValue>(self, key: TKey, value: TValue) -> Self where
    TKey: ToString,
    TValue: Into<Value>, 
[src]

Set a script parameter.

impl<TParams> ScriptBuilder<TParams>[src]

pub fn lang<TLang>(self, lang: Option<TLang>) -> Self where
    TLang: ToString
[src]

Set the language for the update script.

pub fn params<TNewParams>(self, params: TNewParams) -> ScriptBuilder<TNewParams>[src]

Specify a new set of parameters for the update script.

Trait Implementations

impl From<String> for ScriptBuilder<DefaultParams>[src]

impl<'a> From<&'a str> for ScriptBuilder<DefaultParams>[src]

Auto Trait Implementations

impl<TParams> Send for ScriptBuilder<TParams> where
    TParams: Send

impl<TParams> Sync for ScriptBuilder<TParams> where
    TParams: Sync

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

impl<T, U> TryInto 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> Same for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 

impl<T> Erased for T

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

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