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§
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.