pub struct GetOperation<'a, 'b> { /* private fields */ }Expand description
An ES GET operation, to get a document by ID
Implementations§
Source§impl<'a, 'b> GetOperation<'a, 'b>
impl<'a, 'b> GetOperation<'a, 'b>
pub fn new(client: &'a mut Client, index: &'b str, id: &'b str) -> Self
pub fn with_all_types(&'b mut self) -> &'b mut Self
pub fn with_doc_type(&'b mut self, doc_type: &'b str) -> &'b mut Self
pub fn with_fields(&'b mut self, fields: &[&'b str]) -> &'b mut Self
pub fn with_realtime<T: Into<OptionVal>>(&'a mut self, val: T) -> &'a mut Self
pub fn with_source<T: Into<OptionVal>>(&'a mut self, val: T) -> &'a mut Self
pub fn with_routing<T: Into<OptionVal>>(&'a mut self, val: T) -> &'a mut Self
pub fn with_preference<T: Into<OptionVal>>(&'a mut self, val: T) -> &'a mut Self
pub fn with_refresh<T: Into<OptionVal>>(&'a mut self, val: T) -> &'a mut Self
pub fn with_version<T: Into<OptionVal>>(&'a mut self, val: T) -> &'a mut Self
pub fn with_version_type<T: Into<OptionVal>>( &'a mut self, val: T, ) -> &'a mut Self
pub fn send<T>(&'b mut self) -> Result<GetResult<T>, EsError>where
T: DeserializeOwned,
Trait Implementations§
Auto Trait Implementations§
impl<'a, 'b> Freeze for GetOperation<'a, 'b>
impl<'a, 'b> !RefUnwindSafe for GetOperation<'a, 'b>
impl<'a, 'b> Send for GetOperation<'a, 'b>
impl<'a, 'b> Sync for GetOperation<'a, 'b>
impl<'a, 'b> Unpin for GetOperation<'a, 'b>
impl<'a, 'b> !UnwindSafe for GetOperation<'a, 'b>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more