pub trait RequestBuilder {
type Response: DeserializeOwned + Debug;
// Required methods
fn get_request_url(&self) -> String;
fn get_client(&self) -> &Client;
fn get_parameters(&self) -> &Parameters;
// Provided method
fn fetch<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Self::Response, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
}