pub trait RequestBuilder {
    type Response: DeserializeOwned + Debug;

    // Required methods
    fn get_request_url(&self) -> String;
    fn get_client(&self) -> &Client;

    // 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 { ... }
}

Required Associated Types§

Required Methods§

Provided Methods§

source

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,

Implementors§