[][src]Struct elastic::client::requests::bulk::BulkDocumentOperation

pub struct BulkDocumentOperation<TDocument> { /* fields omitted */ }

Methods

impl<TDocument> BulkDocumentOperation<TDocument> where
    TDocument: DocumentType
[src]

pub fn new() -> Self[src]

pub fn index(self, doc: TDocument) -> BulkOperation<TDocument>[src]

pub fn update(self, doc: TDocument) -> BulkOperation<Doc<TDocument>>[src]

pub fn update_script<TId, TScript>(
    self,
    id: TId,
    script: TScript
) -> BulkOperation<Script<DefaultParams>> where
    TId: Into<Id<'static>>,
    TScript: ToString
[src]

pub fn update_script_fluent<TId, TScript, TBuilder, TParams>(
    self,
    id: TId,
    script: TScript,
    builder: TBuilder
) -> BulkOperation<Script<TParams>> where
    TId: Into<Id<'static>>,
    TScript: ToString,
    TBuilder: Fn(ScriptBuilder<DefaultParams>) -> ScriptBuilder<TParams>, 
[src]

pub fn create(self, doc: TDocument) -> BulkOperation<TDocument>[src]

pub fn delete<TId>(self, id: TId) -> BulkOperation<()> where
    TId: Into<Id<'static>>, 
[src]

Auto Trait Implementations

impl<TDocument> Send for BulkDocumentOperation<TDocument> where
    TDocument: Send

impl<TDocument> Sync for BulkDocumentOperation<TDocument> where
    TDocument: Sync

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.

impl<T> Same for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 

impl<T> Erased for T

impl<T, U> TryInto for T where
    U: TryFrom<T>, 

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