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;
}๐Deprecated since 0.12.33: Will be removed soon
Expand description
API that defines a client for the Aggregator
Required Methodsยง
Sourcefn 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,
๐Deprecated since 0.12.33: Will be removed soon
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
Sourcefn 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,
๐Deprecated since 0.12.33: Will be removed soon
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