Struct elastic::client::responses::IndexResponse
[−]
pub struct IndexResponse { pub index: String, pub ty: String, pub id: String, pub version: Option<u32>, pub created: bool, pub shards: Shards, }
Response for an index document request.
Fields
index: String
ty: String
id: String
version: Option<u32>
created: bool
Trait Implementations
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>,
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.