Trait elastic_reqwest::ParseResponse
[−]
[src]
pub trait ParseResponse<TResponse> { fn from_response(
self,
response: Response
) -> Result<TResponse, ResponseError>; }
Represents a response that can be parsed into a concrete Elasticsearch response.
Required Methods
fn from_response(self, response: Response) -> Result<TResponse, ResponseError>
Parse a response into a concrete response type.
Implementors
impl<TResponse: IsOk + DeserializeOwned> ParseResponse<TResponse> for Parse<TResponse>