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

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


impl<S> Action<S> where S: Serialize

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>

Delete a document based on ID.


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");