Struct rs_es::operations::bulk::Action
[−]
[src]
pub struct Action<X>(_, _);
Methods
impl<S> Action<S> where S: Serialize
[src]
fn index(document: S) -> Self
An index action.
Takes the document to be indexed, other parameters can be set as
optional on the Action
struct returned.
fn create(document: S) -> Self
Create action
impl<S> Action<S>
[src]
fn delete<A: Into<String>>(id: A) -> Self
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");