pub struct GoalSnapshot {
pub id: String,
pub text: String,
pub status: GoalStatusView,
pub turns_used: u64,
pub tokens_used: u64,
pub token_budget: Option<u64>,
}Expand description
Lightweight cross-crate snapshot of an active goal.
Produced by AgentAccess::active_goal_snapshot and consumed by the TUI status bar
and metrics bridge. Contains only display-relevant fields.
Fields§
§id: StringUUID string of the goal.
text: StringGoal text, pre-validated to fit within max_text_chars.
status: GoalStatusViewCurrent FSM status.
turns_used: u64Number of turns completed under this goal.
tokens_used: u64Total tokens consumed across all turns.
token_budget: Option<u64>Optional token budget (None = unlimited).
Trait Implementations§
Source§impl Clone for GoalSnapshot
impl Clone for GoalSnapshot
Source§fn clone(&self) -> GoalSnapshot
fn clone(&self) -> GoalSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GoalSnapshot
impl Debug for GoalSnapshot
Auto Trait Implementations§
impl Freeze for GoalSnapshot
impl RefUnwindSafe for GoalSnapshot
impl Send for GoalSnapshot
impl Sync for GoalSnapshot
impl Unpin for GoalSnapshot
impl UnsafeUnpin for GoalSnapshot
impl UnwindSafe for GoalSnapshot
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