Struct rs_es::operations::index::IndexOperation [] [src]

pub struct IndexOperation<'a, 'b, E: Serialize + 'b> {
    // some fields omitted
}

An indexing operation

Methods

impl<'a, 'b, E: Serialize + 'b> IndexOperation<'a, 'b, E>
[src]

fn new(client: &'a mut Client, index: &'b str, doc_type: &'b str) -> IndexOperation<'a, 'b, E>

fn with_doc(&'b mut self, doc: &'b E) -> &'b mut Self

fn with_id(&'b mut self, id: &'b str) -> &'b mut Self

fn with_ttl<T: Into<OptionVal>>(&'a mut self, val: T) -> &'a mut Self

fn with_version<T: Into<OptionVal>>(&'a mut self, val: T) -> &'a mut Self

fn with_version_type<T: Into<OptionVal>>(&'a mut self, val: T) -> &'a mut Self

fn with_op_type<T: Into<OptionVal>>(&'a mut self, val: T) -> &'a mut Self

fn with_routing<T: Into<OptionVal>>(&'a mut self, val: T) -> &'a mut Self

fn with_parent<T: Into<OptionVal>>(&'a mut self, val: T) -> &'a mut Self

fn with_timestamp<T: Into<OptionVal>>(&'a mut self, val: T) -> &'a mut Self

fn with_refresh<T: Into<OptionVal>>(&'a mut self, val: T) -> &'a mut Self

fn with_timeout<T: Into<OptionVal>>(&'a mut self, val: T) -> &'a mut Self

fn send(&'b mut self) -> Result<IndexResultEsError>