pub struct TaskItem {Show 13 fields
pub id: String,
pub description: String,
pub status: TaskItemStatus,
pub depends_on: Vec<String>,
pub notes: String,
pub active_form: Option<String>,
pub parent_id: Option<String>,
pub phase: TaskPhase,
pub priority: TaskPriority,
pub completion_criteria: Vec<String>,
pub evidence: Vec<TaskEvidence>,
pub blockers: Vec<TaskBlocker>,
pub transitions: Vec<TaskTransition>,
}Expand description
Task item for task tracking.
Fields§
§id: StringUnique identifier for the task item.
description: StringHuman-readable description of the task.
status: TaskItemStatusCurrent status of the item.
depends_on: Vec<String>IDs of other items this item depends on.
notes: StringAdditional notes or context.
active_form: Option<String>Present-progress phrasing for the active task.
parent_id: Option<String>Optional parent task ID when this item is part of a larger task tree.
phase: TaskPhasePhase of work for the task.
priority: TaskPriorityRelative priority of the task.
completion_criteria: Vec<String>Explicit completion criteria for the task.
evidence: Vec<TaskEvidence>Structured evidence gathered while working on the task.
blockers: Vec<TaskBlocker>Structured blocker information.
transitions: Vec<TaskTransition>Transition history for this task item.
Implementations§
Source§impl TaskItem
impl TaskItem
Sourcepub fn append_notes(&mut self, note: &str)
pub fn append_notes(&mut self, note: &str)
Append notes while preserving previous content.
Sourcepub fn effective_active_form(&self) -> Option<&str>
pub fn effective_active_form(&self) -> Option<&str>
Return the most useful active-form display for the task.
Sourcepub fn push_evidence(&mut self, evidence: TaskEvidence)
pub fn push_evidence(&mut self, evidence: TaskEvidence)
Add structured evidence if it contains useful content.
Sourcepub fn add_blocker(&mut self, blocker: TaskBlocker)
pub fn add_blocker(&mut self, blocker: TaskBlocker)
Add a blocker if it is not empty and not already recorded.
Sourcepub fn transition_to(
&mut self,
status: TaskItemStatus,
reason: Option<&str>,
round: Option<u32>,
) -> bool
pub fn transition_to( &mut self, status: TaskItemStatus, reason: Option<&str>, round: Option<u32>, ) -> bool
Transition to a new status and record the change.
Sourcepub fn dependencies_ready(&self, completed_ids: &HashSet<String>) -> bool
pub fn dependencies_ready(&self, completed_ids: &HashSet<String>) -> bool
Whether all declared dependencies are already completed.