task_status

The lifecycle status of a task: open, in progress, done or cancelled.

enum Primitive

source

pub enum Primitive

The 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

source

pub fn is_terminal(self) -> bool

Whether this status represents a terminal (final) state.

Parameter Type Description
returns bool true for Done or Cancelled.