pub struct TeamTaskBoard { /* private fields */ }Expand description
Shared task board for team coordination.
Implementations§
Source§impl TeamTaskBoard
impl TeamTaskBoard
Sourcepub fn post(
&self,
description: &str,
posted_by: &str,
assign_to: Option<&str>,
) -> Option<String>
pub fn post( &self, description: &str, posted_by: &str, assign_to: Option<&str>, ) -> Option<String>
Post a new task to the board. Returns the task ID.
Sourcepub fn claim(&self, member_id: &str) -> Option<TeamTask>
pub fn claim(&self, member_id: &str) -> Option<TeamTask>
Claim the next open task for a member. Returns the task if available.
Sourcepub fn complete(&self, task_id: &str, result: &str) -> bool
pub fn complete(&self, task_id: &str, result: &str) -> bool
Mark a task as complete with a result.
Sourcepub fn by_status(&self, status: TaskStatus) -> Vec<TeamTask>
pub fn by_status(&self, status: TaskStatus) -> Vec<TeamTask>
Get all tasks with a given status.
Sourcepub fn by_assignee(&self, member_id: &str) -> Vec<TeamTask>
pub fn by_assignee(&self, member_id: &str) -> Vec<TeamTask>
Get all tasks assigned to a member.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for TeamTaskBoard
impl RefUnwindSafe for TeamTaskBoard
impl Send for TeamTaskBoard
impl Sync for TeamTaskBoard
impl Unpin for TeamTaskBoard
impl UnsafeUnpin for TeamTaskBoard
impl UnwindSafe for TeamTaskBoard
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more