pub struct Goal {
pub id: String,
pub description: String,
pub parent_goal: Option<String>,
pub status: GoalStatus,
pub metrics: HashMap<String, String>,
}Expand description
A single goal in a goal hierarchy.
Fields§
§id: StringUnique goal identifier.
description: StringHuman-readable description of the goal.
parent_goal: Option<String>Parent goal ID (None for top-level goals).
status: GoalStatusCurrent status.
metrics: HashMap<String, String>Key-value metrics for tracking progress (e.g. “completion_pct” -> “75”).
Implementations§
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
Auto Trait Implementations§
impl Freeze 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