Struct rs_es::operations::bulk::Action [] [src]

pub struct Action<X>(_, _);

Methods

impl<S> Action<S> where S: Serialize
[src]

An index action.

Takes the document to be indexed, other parameters can be set as optional on the Action struct returned.

Create action

impl<S> Action<S>
[src]

Delete a document based on ID.

Example

use rs_es::operations::bulk::Action;

let delete_action:Action<()> = Action::delete("doc_id");
let delete_with_index:Action<()> = Action::delete("doc_id").with_index("index_name");