parse_response_json

Function parse_response_json 

Source
pub async fn parse_response_json<RESPONSE: DeserializeOwned>(
    response: Response,
    latency: Duration,
) -> Result<RESPONSE, Report<ProviderError>>
Expand description

Parse a JSON response, with informative errors when the format does not match the expected structure.