Trait RunStore

Source
pub trait RunStore {
    // Required methods
    fn store_run<'life0, 'async_trait>(
        &'life0 self,
        run: Run,
    ) -> Pin<Box<dyn Future<Output = Result<(), RunStoreError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn update_run<'life0, 'async_trait>(
        &'life0 self,
        run: Run,
    ) -> Pin<Box<dyn Future<Output = Result<(), RunStoreError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_run<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        project: &'life1 ValidShardedId<ProjectId>,
        id: &'life2 RunId,
    ) -> Pin<Box<dyn Future<Output = Result<Option<Run>, RunStoreError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn get_runs_by_trigger<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        project: &'life1 ValidShardedId<ProjectId>,
        trigger_id: &'life2 TriggerId,
        pagination: PaginationIn,
    ) -> Pin<Box<dyn Future<Output = Result<PaginatedResponse<Run>, RunStoreError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn get_runs_by_project<'life0, 'life1, 'async_trait>(
        &'life0 self,
        project: &'life1 ValidShardedId<ProjectId>,
        pagination: PaginationIn,
    ) -> Pin<Box<dyn Future<Output = Result<PaginatedResponse<Run>, RunStoreError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_runs_by_status<'life0, 'async_trait>(
        &'life0 self,
        status: RunStatus,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Run>, RunStoreError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn store_run<'life0, 'async_trait>( &'life0 self, run: Run, ) -> Pin<Box<dyn Future<Output = Result<(), RunStoreError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn update_run<'life0, 'async_trait>( &'life0 self, run: Run, ) -> Pin<Box<dyn Future<Output = Result<(), RunStoreError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_run<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, project: &'life1 ValidShardedId<ProjectId>, id: &'life2 RunId, ) -> Pin<Box<dyn Future<Output = Result<Option<Run>, RunStoreError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn get_runs_by_trigger<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, project: &'life1 ValidShardedId<ProjectId>, trigger_id: &'life2 TriggerId, pagination: PaginationIn, ) -> Pin<Box<dyn Future<Output = Result<PaginatedResponse<Run>, RunStoreError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn get_runs_by_project<'life0, 'life1, 'async_trait>( &'life0 self, project: &'life1 ValidShardedId<ProjectId>, pagination: PaginationIn, ) -> Pin<Box<dyn Future<Output = Result<PaginatedResponse<Run>, RunStoreError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn get_runs_by_status<'life0, 'async_trait>( &'life0 self, status: RunStatus, ) -> Pin<Box<dyn Future<Output = Result<Vec<Run>, RunStoreError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§