Struct elastic_responses::IndexResponse
[−]
[src]
pub struct IndexResponse { /* fields omitted */ }
Response for an index document request.
Methods
impl IndexResponse
[src]
[src]
Shards metadata for the request.
fn created(&self) -> bool
[src]
Whether or not a matching document was created.
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 IndexResponse
[src]
impl IsOk for IndexResponse
[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.