Struct elasticsearch::BulkCreateOperation[][src]

pub struct BulkCreateOperation<B> { /* fields omitted */ }

Bulk create operation

Implementations

impl<B> BulkCreateOperation<B>[src]

pub fn new<S>(id: S, source: B) -> Self where
    S: Into<String>, 
[src]

Creates a new instance of BulkCreateOperation

pub fn index<S>(self, index: S) -> Self where
    S: Into<String>, 
[src]

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.

pub fn pipeline<S>(self, pipeline: S) -> Self where
    S: Into<String>, 
[src]

The ID of the pipeline to use to preprocess incoming documents

pub fn routing<S>(self, routing: S) -> Self where
    S: Into<String>, 
[src]

Target the specified primary shard

Trait Implementations

impl<B> From<BulkCreateOperation<B>> for BulkOperation<B>[src]

Auto Trait Implementations

impl<B> RefUnwindSafe for BulkCreateOperation<B> where
    B: RefUnwindSafe
[src]

impl<B> Send for BulkCreateOperation<B> where
    B: Send
[src]

impl<B> Sync for BulkCreateOperation<B> where
    B: Sync
[src]

impl<B> Unpin for BulkCreateOperation<B> where
    B: Unpin
[src]

impl<B> UnwindSafe for BulkCreateOperation<B> where
    B: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.