pub enum BulkAction {
Index,
Create,
Update,
Delete,
}Expand description
The action of a bulk operation, mirroring OpenSearch’s verbs.
Variants§
Index
Index (create-or-replace) a document.
Create
Create a document, failing if it already exists.
Update
Partial-update / scripted-update a document.
Delete
Delete a document by id.
Implementations§
Source§impl BulkAction
impl BulkAction
Trait Implementations§
Source§impl Clone for BulkAction
impl Clone for BulkAction
Source§fn clone(&self) -> BulkAction
fn clone(&self) -> BulkAction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BulkAction
Source§impl Debug for BulkAction
impl Debug for BulkAction
impl Eq for BulkAction
Source§impl PartialEq for BulkAction
impl PartialEq for BulkAction
Source§fn eq(&self, other: &BulkAction) -> bool
fn eq(&self, other: &BulkAction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BulkAction
Auto Trait Implementations§
impl Freeze for BulkAction
impl RefUnwindSafe for BulkAction
impl Send for BulkAction
impl Sync for BulkAction
impl Unpin for BulkAction
impl UnsafeUnpin for BulkAction
impl UnwindSafe for BulkAction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more