task_status
The lifecycle status of a task: open, in progress, done or cancelled.
enum Primitive
pub enum PrimitiveThe lifecycle status of a task.
| Variant | Description |
|---|---|
Cancelled |
Terminal: task was abandoned before completion. |
Done |
Terminal: task was completed successfully. |
InProgress |
Actively being worked on. |
Open |
Ready to be picked up (the default). |
Implements Clone, Copy, Debug, Default, Deserialize<'de>, Eq, Hash, PartialEq, Serialize, Display, FromStr.
Primitive::is_terminal
pub fn is_terminal(self) -> boolWhether this status represents a terminal (final) state.
| Parameter | Type | Description |
|---|---|---|
| returns | bool | true for Done or Cancelled. |