#[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
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
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>Goal creation time, epoch milliseconds, verbatim from the durable row. Absent on blocks whose producer never carried it (tool-result adoptions, older logs); absence must never render as a fabricated zero.
updated_at_ms: Option<i64>Last goal mutation time, epoch milliseconds, verbatim from the durable
row. Same absence rule as createdAtMs.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Goal
impl<'de> Deserialize<'de> for Goal
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Goal
impl StructuralPartialEq for Goal
Auto Trait Implementations§
impl Forget for Goal
impl Freeze for Goal
impl Move for Goal
impl RefUnwindSafe for Goal
impl Send for Goal
impl Sync for Goal
impl Unpin for Goal
impl UnsafeUnpin for Goal
impl UnwindSafe for Goal
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more