pub trait ApiClient: Send + Sync {
type Error: Error + Sync + Send;
fn request<'life0, 'async_trait>(
&'life0 self,
url: String
) -> Pin<Box<dyn Future<Output = Result<Value, Self::Error>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn torn_api<S>(&self, key: S) -> ApiProvider<'_, Self, DirectExecutor<Self>>
where
Self: Sized,
S: ToString,
{ ... }
}
Required Associated Types
Required Methods
Provided Methods
sourcefn torn_api<S>(&self, key: S) -> ApiProvider<'_, Self, DirectExecutor<Self>>where