Struct elasticsearch::BulkCreateOperation
source · pub struct BulkCreateOperation<B> { /* private fields */ }
Expand description
Bulk create operation
Implementations
sourceimpl<B> BulkCreateOperation<B>
impl<B> BulkCreateOperation<B>
sourcepub fn new<S>(id: S, source: B) -> Selfwhere
S: Into<String>,
pub fn new<S>(id: S, source: B) -> Selfwhere
S: Into<String>,
Creates a new instance of BulkCreateOperation
sourcepub fn index<S>(self, index: S) -> Selfwhere
S: Into<String>,
pub fn index<S>(self, index: S) -> Selfwhere
S: Into<String>,
Specify the name of the index to perform the bulk update operation against.
Each bulk operation can specify an index to operate against. If all bulk operations in one Bulk API call will operate against the same index, specify the index on Bulk using BulkParts::Index, and omit specifying the index on each bulk operation.
Trait Implementations
sourceimpl<B> From<BulkCreateOperation<B>> for BulkOperation<B>
impl<B> From<BulkCreateOperation<B>> for BulkOperation<B>
sourcefn from(b: BulkCreateOperation<B>) -> Self
fn from(b: BulkCreateOperation<B>) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl<B> RefUnwindSafe for BulkCreateOperation<B>where
B: RefUnwindSafe,
impl<B> Send for BulkCreateOperation<B>where
B: Send,
impl<B> Sync for BulkCreateOperation<B>where
B: Sync,
impl<B> Unpin for BulkCreateOperation<B>where
B: Unpin,
impl<B> UnwindSafe for BulkCreateOperation<B>where
B: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more