[−][src]Struct elastic::client::requests::common::ScriptBuilder
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]
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<DefaultParams>
[src]
impl<'a> From<&'a str> for ScriptBuilder<DefaultParams>
[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,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto 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> Same for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
impl<T> Erased for T
impl<T, U> TryInto for T where
U: TryFrom<T>,
U: TryFrom<T>,