[][src]Struct rs_es::operations::mapping::MappingOperation

pub struct MappingOperation<'a, 'b> { /* fields omitted */ }

An indexing operation

Methods

impl<'a, 'b> MappingOperation<'a, 'b>[src]

pub fn new(client: &'a mut Client, index: &'b str) -> MappingOperation<'a, 'b>[src]

pub fn with_mapping(&'b mut self, mapping: &'b Mapping) -> &'b mut Self[src]

Set the actual mapping

pub fn with_settings(&'b mut self, settings: &'b Settings) -> &'b mut Self[src]

Set the settings

pub fn send(&'b mut self) -> Result<MappingResult, EsError>[src]

If settings have been provided, the index will be created with them. If the index already exists, an Err(EsError) will be returned. If mapping have been set too, the properties will be applied. The index will be unavailable during this process. Nothing will be done if either mapping and settings are not present.

Trait Implementations

impl<'a, 'b> Debug for MappingOperation<'a, 'b>[src]

Auto Trait Implementations

impl<'a, 'b> Send for MappingOperation<'a, 'b>

impl<'a, 'b> Sync for MappingOperation<'a, 'b>

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> Erased for T

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

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