pub struct GoalExecuteResult {
pub session_id: String,
pub lines: Vec<String>,
pub mutated: bool,
pub submit: Option<String>,
pub goal: Option<GoalSnapshot>,
}Expand description
Result of a /goal execution.
Fields§
§session_id: StringSession that executed the command, echoed so clients discard stale responses.
lines: Vec<String>Status lines to show the user, in order.
mutated: boolWhether the tracker changed (persisted; bar refreshes from goal).
submit: Option<String>Turn prompt to submit after rendering (Set starts work on the
objective; successful Resume continues it; otherwise None).
goal: Option<GoalSnapshot>Fresh snapshot after applying, or None when no goal exists.
Trait Implementations§
Source§impl Clone for GoalExecuteResult
impl Clone for GoalExecuteResult
Source§impl Debug for GoalExecuteResult
impl Debug for GoalExecuteResult
Source§impl<'de> Deserialize<'de> for GoalExecuteResult
impl<'de> Deserialize<'de> for GoalExecuteResult
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 GoalExecuteResult
Source§impl PartialEq for GoalExecuteResult
impl PartialEq for GoalExecuteResult
Source§impl Serialize for GoalExecuteResult
impl Serialize for GoalExecuteResult
impl StructuralPartialEq for GoalExecuteResult
Auto Trait Implementations§
impl Forget for GoalExecuteResult
impl Freeze for GoalExecuteResult
impl Move for GoalExecuteResult
impl RefUnwindSafe for GoalExecuteResult
impl Send for GoalExecuteResult
impl Sync for GoalExecuteResult
impl Unpin for GoalExecuteResult
impl UnsafeUnpin for GoalExecuteResult
impl UnwindSafe for GoalExecuteResult
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
Compare self to
key and return true if they are equal.