Struct elastic_responses::UpdateResponse
[−]
[src]
pub struct UpdateResponse { /* fields omitted */ }
Response for a update document request.
Methods
impl UpdateResponse
[src]
fn updated(&self) -> bool
[src]
Whether or not the document was updated.
fn index(&self) -> &str
[src]
The index for the document.
fn ty(&self) -> &str
[src]
The type of the document.
fn id(&self) -> &str
[src]
The id of the document.
fn version(&self) -> Option<u32>
[src]
The version of the document.
Trait Implementations
impl Debug for UpdateResponse
[src]
impl IsOk for UpdateResponse
[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.