Struct elastic::client::requests::document_update::ScriptBuilder
[−]
[src]
pub struct ScriptBuilder<TParams> { /* fields omitted */ }
A builder for an update script that can be configured before sending.
Methods
impl ScriptBuilder<Map<String, Value>>
[src]
pub fn new<TScript>(source: TScript) -> Self where
TScript: ToString,
[src]
TScript: ToString,
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]
TKey: ToString,
TValue: Into<Value>,
Set a script parameter.
impl<TParams> ScriptBuilder<TParams>
[src]
pub fn lang<TLang>(self, lang: Option<TLang>) -> Self where
TLang: ToString,
[src]
TLang: ToString,
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<Map<String, Value>>
[src]
impl<'a> From<&'a str> for ScriptBuilder<Map<String, Value>>
[src]
Auto Trait Implementations
impl<TParams> Send for ScriptBuilder<TParams> where
TParams: Send,
TParams: Send,
impl<TParams> Sync for ScriptBuilder<TParams> where
TParams: Sync,
TParams: Sync,