pub struct GoalSnapshot {
pub id: String,
pub text: String,
pub status: GoalStatus,
pub turns_used: u64,
pub tokens_used: u64,
pub token_budget: Option<u64>,
}Expand description
Lightweight, cross-crate snapshot of an active goal.
Carries only what TUI and command handlers need, without pulling zeph-core into zeph-tui.
Fields§
§id: StringUUID string of the goal.
text: StringGoal text, pre-validated to fit within max_text_chars.
status: GoalStatusCurrent FSM status.
turns_used: u64Number of turns completed.
tokens_used: u64Total tokens consumed.
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
Source§impl From<Goal> for GoalSnapshot
impl From<Goal> 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request