pub struct ProjectGoalState {Show 15 fields
pub objective: Option<String>,
pub status: ProjectGoalStatus,
pub pause_reason: Option<String>,
pub started_at_elapsed_seconds: Option<u64>,
pub time_used_seconds: u64,
pub token_budget: Option<u32>,
pub tokens_used: u64,
pub session_total_tokens: u32,
pub continuation_count: u32,
pub pending_controls: bool,
pub last_known_objective: Option<String>,
pub last_known_status: Option<ProjectGoalStatus>,
pub conversation_present: bool,
pub is_loading: bool,
pub goal_continuation_waiting: bool,
}Expand description
Portable goal projection (FEAT-021 D1).
Carries the visible goal state, the effective pending-control view, and the
session-derived token fallback the live /goal handler consumes. Concrete
goal-service, session-manager, and App types never cross the boundary.
Fields§
§objective: Option<String>Visible goal objective.
status: ProjectGoalStatusVisible goal status.
pause_reason: Option<String>Pause reason label when the goal is paused (already rendered).
started_at_elapsed_seconds: Option<u64>Elapsed seconds from started_at when present (host-computed).
time_used_seconds: u64Seconds of goal time used (stable budget/elapsed source).
token_budget: Option<u32>Optional token budget.
tokens_used: u64Tokens used by the goal engine.
session_total_tokens: u32Session conversation-token total (fallback when tokens_used == 0).
continuation_count: u32Goal continuation count.
pending_controls: boolWhether pending goal controls are queued (effective-state gate).
last_known_objective: Option<String>Last-known durable objective (session-derived effective source).
last_known_status: Option<ProjectGoalStatus>Last-known durable status (session-derived effective source).
conversation_present: boolWhether the conversation has API messages (bare /goal context gate).
is_loading: boolWhether the host is currently loading (idle-hint gate).
goal_continuation_waiting: boolWhether the goal continuation loop is waiting (idle-hint gate).
Trait Implementations§
Source§impl Clone for ProjectGoalState
impl Clone for ProjectGoalState
Source§impl Debug for ProjectGoalState
impl Debug for ProjectGoalState
impl Eq for ProjectGoalState
Source§impl PartialEq for ProjectGoalState
impl PartialEq for ProjectGoalState
impl StructuralPartialEq for ProjectGoalState
Auto Trait Implementations§
impl Freeze for ProjectGoalState
impl RefUnwindSafe for ProjectGoalState
impl Send for ProjectGoalState
impl Sync for ProjectGoalState
impl Unpin for ProjectGoalState
impl UnsafeUnpin for ProjectGoalState
impl UnwindSafe for ProjectGoalState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.