Trait WorkstreamRepo
Source pub trait WorkstreamRepo {
// Required methods
fn create(&self, workstream: &Workstream) -> Result<(), WorkstreamError>;
fn find_by_name(
&self,
project_id: &ProjectId,
name: &str,
) -> Result<Option<Workstream>, WorkstreamError>;
fn list_by_project(
&self,
project_id: &ProjectId,
) -> Result<Vec<Workstream>, WorkstreamError>;
fn update(&self, workstream: &Workstream) -> Result<(), WorkstreamError>;
fn delete(
&self,
project_id: &ProjectId,
id: &WorkstreamId,
) -> Result<(), WorkstreamError>;
}