pub trait Api {
// Required methods
fn login<'life0, 'async_trait>(
&'life0 self,
request: LoginRequest,
) -> Pin<Box<dyn Future<Output = Result<LoginResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn create_project<'life0, 'async_trait>(
&'life0 self,
request: CreateProjectRequest,
token: String,
) -> Pin<Box<dyn Future<Output = Result<CreateProjectResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn register_task_version<'life0, 'async_trait>(
&'life0 self,
request: CreateTaskVersionRequest,
token: String,
) -> Pin<Box<dyn Future<Output = Result<CreateTaskVersionResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Required Methods§
fn login<'life0, 'async_trait>(
&'life0 self,
request: LoginRequest,
) -> Pin<Box<dyn Future<Output = Result<LoginResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_project<'life0, 'async_trait>(
&'life0 self,
request: CreateProjectRequest,
token: String,
) -> Pin<Box<dyn Future<Output = Result<CreateProjectResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn register_task_version<'life0, 'async_trait>(
&'life0 self,
request: CreateTaskVersionRequest,
token: String,
) -> Pin<Box<dyn Future<Output = Result<CreateTaskVersionResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".