Struct elastic::client::responses::prelude::IndexResponse
[−]
pub struct IndexResponse { /* fields omitted */ }
Response for an index document request.
Methods
impl IndexResponse
Shards metadata for the request.
pub fn created(&self) -> bool
Whether or not a matching document was created.
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 IndexResponse
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 IndexResponse
fn deserialize<__D>(
__deserializer: __D
) -> Result<IndexResponse, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
__deserializer: __D
) -> Result<IndexResponse, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more