pub struct WorkItem {Show 15 fields
pub id: String,
pub project_id: String,
pub item_type: WorkItemType,
pub title: String,
pub description: String,
pub priority: WorkItemPriority,
pub parent_id: Option<String>,
pub wbs: String,
pub outline_level: u16,
pub estimate_minutes: Option<u32>,
pub three_point_estimate: Option<ThreePointEstimate>,
pub constraint: TaskConstraint,
pub constraint_date_unix: Option<u32>,
pub assignee_did: Option<String>,
pub created_at_unix: u32,
}Expand description
The immutable core of a work item. Its status is derived from status events, not stored here.
Fields§
§id: String§project_id: String§item_type: WorkItemType§title: String§description: String§priority: WorkItemPriority§parent_id: Option<String>Optional parent work item ID in the WBS hierarchy.
wbs: StringDotted WBS code (e.g. "1.2.3").
outline_level: u16WBS outline depth (0 = root, 1 = phase/summary, etc.).
estimate_minutes: Option<u32>Effort estimate in whole minutes (integer discipline, plan §8.4).
three_point_estimate: Option<ThreePointEstimate>Optional three-point PERT duration/effort estimate (optimistic_m, most_likely_m, pessimistic_m).
constraint: TaskConstraintScheduling constraint (Asap, Alap, Snet, Snlt, Fnet, Fnlt, Mso, Mfo).
constraint_date_unix: Option<u32>Optional Unix timestamp anchor for date-constrained tasks (Snet, Snlt, Fnet, Fnlt, Mso, Mfo).
assignee_did: Option<String>§created_at_unix: u32Implementations§
Source§impl WorkItem
impl WorkItem
Sourcepub fn new(
project_id: impl Into<String>,
item_type: WorkItemType,
title: impl Into<String>,
created_at_unix: u32,
) -> Self
pub fn new( project_id: impl Into<String>, item_type: WorkItemType, title: impl Into<String>, created_at_unix: u32, ) -> Self
Creates a new instance.
Sourcepub fn with_wbs(
self,
parent_id: Option<String>,
wbs: impl Into<String>,
outline_level: u16,
) -> Self
pub fn with_wbs( self, parent_id: Option<String>, wbs: impl Into<String>, outline_level: u16, ) -> Self
Builder helper to set WBS hierarchy coordinates (parent_id, wbs, outline_level).
Sourcepub fn with_constraint(
self,
constraint: TaskConstraint,
constraint_date_unix: Option<u32>,
) -> Self
pub fn with_constraint( self, constraint: TaskConstraint, constraint_date_unix: Option<u32>, ) -> Self
Builder helper to attach a TaskConstraint and optional anchor timestamp.
Sourcepub fn with_three_point_estimate(self, estimate: ThreePointEstimate) -> Self
pub fn with_three_point_estimate(self, estimate: ThreePointEstimate) -> Self
Builder helper to attach a ThreePointEstimate.