Struct rs_es::operations::get::GetOperation [] [src]

pub struct GetOperation<'a, 'b> {
    // some fields omitted
}

An ES GET operation, to get a document by ID

Methods

impl<'a, 'b> GetOperation<'a, 'b>
[src]

fn new(client: &'a mut Client, index: &'b str, id: &'b str) -> Self

fn with_all_types(&'b mut self) -> &'b mut Self

fn with_doc_type(&'b mut self, doc_type: &'b str) -> &'b mut Self

fn with_fields(&'b mut self, fields: &[&'b str]) -> &'b mut Self

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

fn with_source<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_preference<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_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 send<T>(&'b mut self) -> Result<GetResult<T>, EsError> where T: Deserialize