[−][src]Struct rs_es::operations::mapping::MappingOperation
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
Auto Trait Implementations
impl<'a, 'b> !RefUnwindSafe for MappingOperation<'a, 'b>
impl<'a, 'b> Send for MappingOperation<'a, 'b>
impl<'a, 'b> Sync for MappingOperation<'a, 'b>
impl<'a, 'b> Unpin for MappingOperation<'a, 'b>
impl<'a, 'b> !UnwindSafe for MappingOperation<'a, 'b>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> 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, U> TryInto<U> 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, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,