pub trait Client {
type Response: HttpResponse;
// Required method
fn execute(
&self,
request: Request,
) -> Result<Self::Response, Box<dyn Error>>;
}
Expand description
Represents a thing that can send requests.
Modelled after reqwest::Client
.
Required Associated Types§
Sourcetype Response: HttpResponse
type Response: HttpResponse
Sending a request produces this kind of response.