Trait sanity_api::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,

Implementors§