Planning
This commit is contained in:
parent
e79e2734f4
commit
49a436da7f
3 changed files with 80 additions and 1 deletions
|
|
@ -7,6 +7,7 @@ pub enum ToDoStatus {
|
|||
InProgress,
|
||||
Completed,
|
||||
Blocked,
|
||||
ReadyForAgent,
|
||||
}
|
||||
|
||||
impl Default for ToDoStatus {
|
||||
|
|
@ -22,6 +23,7 @@ impl fmt::Display for ToDoStatus {
|
|||
ToDoStatus::InProgress => write!(f, "in_progress"),
|
||||
ToDoStatus::Completed => write!(f, "completed"),
|
||||
ToDoStatus::Blocked => write!(f, "blocked"),
|
||||
ToDoStatus::ReadyForAgent => write!(f, "ready_for_agent"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -34,6 +36,7 @@ impl std::str::FromStr for ToDoStatus {
|
|||
"in_progress" => Ok(ToDoStatus::InProgress),
|
||||
"completed" => Ok(ToDoStatus::Completed),
|
||||
"blocked" => Ok(ToDoStatus::Blocked),
|
||||
"ready_for_agent" => Ok(ToDoStatus::ReadyForAgent),
|
||||
_ => Err(format!("unknown status: {}", s)),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue