Trait Client
Source pub trait Client {
// Required methods
fn auth<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<String, ClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn status<'life0, 'life1, 'async_trait>(
&'life0 self,
request: StatusRequest,
auth_token: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<StatusResponse, ClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn list<'life0, 'life1, 'async_trait>(
&'life0 self,
auth_token: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<Metadata>, ClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn upload<'life0, 'life1, 'async_trait>(
&'life0 self,
request: UploadFile,
auth_token: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), ClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn download<'life0, 'life1, 'async_trait>(
&'life0 self,
request: DownloadRequest,
auth_token: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<DownloadedFile, ClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}