#[non_exhaustive]pub struct Goal {
pub objective: String,
pub status: String,
pub percent_complete: u64,
pub current_work: Option<String>,
pub next_work: Option<String>,
pub created_at_ms: Option<i64>,
pub updated_at_ms: Option<i64>,
}Expand description
The session goal block. status and percentComplete are carried
verbatim — out-of-contract status strings and >100 percents pass
through; display clamping is the renderer’s job.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.objective: StringThe goal objective text.
status: StringGoal status, verbatim from the durable goal state (free string by design: out-of-contract values pass through).
percent_complete: u64Percent complete, verbatim (>100 passes through).
current_work: Option<String>Current work description, when present.
next_work: Option<String>Next work description, when present.
created_at_ms: Option<i64>the governing rules (pick-4): goal creation time, epoch milliseconds, verbatim from the durable row. Absent on blocks whose producer never carried it (tool-result adoptions, pre-pick-4 logs); absence must never render as a fabricated zero.
updated_at_ms: Option<i64>the governing rules (pick-4): last goal mutation time, epoch
milliseconds, verbatim from the durable row. Same absence rule as
createdAtMs.