| 165 | } |
| 166 | |
| 167 | pub trait GetClientResponse { |
| 168 | type OutputType; |
| 169 | |
| 170 | fn get_response_body( |
| 171 | response: reqwest::Response, |
| 172 | ) -> impl Future<Output = reqwest::Result<Self::OutputType>> + Send + 'static; |
| 173 | } |
| 174 | |
| 175 | impl<T: DeserializeOwned + 'static> GetClientResponse for Json<T> { |
| 176 | type OutputType = T; |
nothing calls this directly
no outgoing calls
no test coverage detected