Struct elastic::client::responses::GetResponseOf
[−]
pub struct GetResponseOf<T> { pub index: String, pub ty: String, pub id: String, pub version: Option<u32>, pub found: bool, pub source: Option<T>, pub routing: Option<String>, }
Response for a get document request.
Fields
index: String
ty: String
id: String
version: Option<u32>
found: bool
source: Option<T>
routing: Option<String>
Trait Implementations
impl<'de, T> Deserialize<'de> for GetResponseOf<T> where
T: Deserialize<'de>,
T: Deserialize<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<GetResponseOf<T>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
__deserializer: __D
) -> Result<GetResponseOf<T>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl<T> IsOk for GetResponseOf<T> where
T: DeserializeOwned,
T: DeserializeOwned,
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<T> Debug for GetResponseOf<T> where
T: Debug,
T: Debug,