Auto deployments
This commit is contained in:
parent
212fea579f
commit
cc92cf681c
8 changed files with 484 additions and 6 deletions
|
|
@ -11,6 +11,7 @@ pub enum ToDoStatus {
|
|||
Delegated,
|
||||
Failed,
|
||||
PendingApproval,
|
||||
Draft,
|
||||
}
|
||||
|
||||
impl Default for ToDoStatus {
|
||||
|
|
@ -29,6 +30,7 @@ impl fmt::Display for ToDoStatus {
|
|||
ToDoStatus::ReadyForAgent => write!(f, "ready_for_agent"),
|
||||
ToDoStatus::Delegated => write!(f, "delegated"),
|
||||
ToDoStatus::Failed => write!(f, "failed"),
|
||||
ToDoStatus::Draft => write!(f, "draft"),
|
||||
ToDoStatus::PendingApproval => write!(f, "pending_approval"),
|
||||
}
|
||||
}
|
||||
|
|
@ -45,6 +47,7 @@ impl std::str::FromStr for ToDoStatus {
|
|||
"ready_for_agent" => Ok(ToDoStatus::ReadyForAgent),
|
||||
"delegated" => Ok(ToDoStatus::Delegated),
|
||||
"failed" => Ok(ToDoStatus::Failed),
|
||||
"draft" => Ok(ToDoStatus::Draft),
|
||||
"pending_approval" => Ok(ToDoStatus::PendingApproval),
|
||||
_ => Err(format!("unknown status: {}", s)),
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue