pub struct BulkCreateOperation<B> { /* private fields */ }
Expand description
Bulk create operation
Implementations§
Source§impl<B> BulkCreateOperation<B>
impl<B> BulkCreateOperation<B>
Sourcepub fn new<S>(id: S, source: B) -> Self
pub fn new<S>(id: S, source: B) -> Self
Creates a new instance of BulkCreateOperation
Sourcepub fn index<S>(self, index: S) -> Self
pub fn index<S>(self, index: S) -> Self
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§
Source§impl<B> From<BulkCreateOperation<B>> for BulkOperation<B>
impl<B> From<BulkCreateOperation<B>> for BulkOperation<B>
Source§fn from(b: BulkCreateOperation<B>) -> Self
fn from(b: BulkCreateOperation<B>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<B> Freeze for BulkCreateOperation<B>where
B: Freeze,
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§
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