Struct elastic_responses::DeleteResponse
[−]
[src]
pub struct DeleteResponse { /* fields omitted */ }
Response for a delete document request.
Methods
impl DeleteResponse
[src]
pub fn found(&self) -> bool
[src]
Whether or not a matching document was found.
pub fn deleted(&self) -> bool
[src]
Whether or not the document was deleted.
pub fn index(&self) -> &str
[src]
The index for the document.
pub fn ty(&self) -> &str
[src]
The type of the document.
pub fn id(&self) -> &str
[src]
The id of the document.
pub fn version(&self) -> Option<u32>
[src]
The version of the document.
Trait Implementations
impl Debug for DeleteResponse
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl IsOk for DeleteResponse
[src]
fn is_ok<B: ResponseBody>(
head: HttpResponseHead,
body: Unbuffered<B>
) -> Result<MaybeOkResponse<B>, ParseResponseError>
[src]
head: HttpResponseHead,
body: Unbuffered<B>
) -> Result<MaybeOkResponse<B>, ParseResponseError>
Inspect the http response to determine whether or not it succeeded.