pub trait AggregatorClient: Sync + Send {
    // Required methods
    fn get_content<'life0, 'async_trait>(
        &'life0 self,
        request: AggregatorRequest,
    ) -> Pin<Box<dyn Future<Output = Result<String, AggregatorClientError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn post_content<'life0, 'async_trait>(
        &'life0 self,
        request: AggregatorRequest,
    ) -> Pin<Box<dyn Future<Output = Result<String, AggregatorClientError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

API that defines a client for the Aggregator

Required Methods§

source

fn get_content<'life0, 'async_trait>( &'life0 self, request: AggregatorRequest, ) -> Pin<Box<dyn Future<Output = Result<String, AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get the content back from the Aggregator

source

fn post_content<'life0, 'async_trait>( &'life0 self, request: AggregatorRequest, ) -> Pin<Box<dyn Future<Output = Result<String, AggregatorClientError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Post information to the Aggregator

Implementors§