Struct elastic::client::responses::prelude::DeleteResponse
[−]
pub struct DeleteResponse { /* fields omitted */ }
Response for a delete document request.
Methods
impl DeleteResponse
pub fn found(&self) -> bool
Whether or not a matching document was found.
pub fn deleted(&self) -> bool
Whether or not the document was deleted.
pub fn index(&self) -> &str
The index for the document.
pub fn ty(&self) -> &str
The type of the document.
pub fn id(&self) -> &str
The id of the document.
pub fn version(&self) -> Option<u32>
The version of the document.
Trait Implementations
impl IsOk for DeleteResponse
fn is_ok<B>(
head: HttpResponseHead,
body: Unbuffered<B>
) -> Result<MaybeOkResponse<B>, ParseResponseError> where
B: ResponseBody,
head: HttpResponseHead,
body: Unbuffered<B>
) -> Result<MaybeOkResponse<B>, ParseResponseError> where
B: ResponseBody,
Inspect the http response to determine whether or not it succeeded.
impl<'de> Deserialize<'de> for DeleteResponse
fn deserialize<__D>(
__deserializer: __D
) -> Result<DeleteResponse, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
__deserializer: __D
) -> Result<DeleteResponse, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more