Skip to main content

TaskManager

Trait TaskManager 

Source
pub trait TaskManager: Send + Sync {
    // Required methods
    fn create_task<'life0, 'life1, 'async_trait>(
        &'life0 self,
        team: &'life1 str,
        req: CreateTaskRequest,
    ) -> Pin<Box<dyn Future<Output = Result<TaskFile>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn update_task<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        team: &'life1 str,
        id: &'life2 str,
        update: TaskUpdate,
    ) -> Pin<Box<dyn Future<Output = Result<TaskFile>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn get_task<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        team: &'life1 str,
        id: &'life2 str,
    ) -> Pin<Box<dyn Future<Output = Result<TaskFile>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn list_tasks<'life0, 'life1, 'async_trait>(
        &'life0 self,
        team: &'life1 str,
        filter: Option<TaskFilter>,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<TaskFile>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn delete_task<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        team: &'life1 str,
        id: &'life2 str,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

Trait for task CRUD operations.

Required Methods§

Source

fn create_task<'life0, 'life1, 'async_trait>( &'life0 self, team: &'life1 str, req: CreateTaskRequest, ) -> Pin<Box<dyn Future<Output = Result<TaskFile>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Create a new task in the given team.

Source

fn update_task<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, team: &'life1 str, id: &'life2 str, update: TaskUpdate, ) -> Pin<Box<dyn Future<Output = Result<TaskFile>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Update an existing task.

Source

fn get_task<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, team: &'life1 str, id: &'life2 str, ) -> Pin<Box<dyn Future<Output = Result<TaskFile>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Get a task by ID.

Source

fn list_tasks<'life0, 'life1, 'async_trait>( &'life0 self, team: &'life1 str, filter: Option<TaskFilter>, ) -> Pin<Box<dyn Future<Output = Result<Vec<TaskFile>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

List tasks, optionally filtered.

Source

fn delete_task<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, team: &'life1 str, id: &'life2 str, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Delete a task by ID.

Implementors§