Skip to main content

Api

Trait Api 

Source
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§

Source

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,

Source

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,

Source

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".

Implementors§