pub enum GoalSlashCommand {
Status,
Set {
objective: String,
},
Edit,
Pause,
Resume,
Clear,
Budget {
limit: Option<i64>,
},
}Expand description
A parsed /goal slash command.
Variants§
Status
Show the thread’s saved goal (status, objective, elapsed, usage).
Set
Set (or replace) the thread goal objective.
Edit
Open the saved objective in an editor.
Pause
Pause the active goal loop.
Resume
Resume a paused goal loop.
Clear
Clear the thread goal entirely.
Budget
Show (None) or set (Some) the token budget. Some(0) clears it.
Trait Implementations§
Source§impl Clone for GoalSlashCommand
impl Clone for GoalSlashCommand
Source§impl Debug for GoalSlashCommand
impl Debug for GoalSlashCommand
impl Eq for GoalSlashCommand
Source§impl PartialEq for GoalSlashCommand
impl PartialEq for GoalSlashCommand
impl StructuralPartialEq for GoalSlashCommand
Auto Trait Implementations§
impl Forget for GoalSlashCommand
impl Freeze for GoalSlashCommand
impl Move for GoalSlashCommand
impl RefUnwindSafe for GoalSlashCommand
impl Send for GoalSlashCommand
impl Sync for GoalSlashCommand
impl Unpin for GoalSlashCommand
impl UnsafeUnpin for GoalSlashCommand
impl UnwindSafe for GoalSlashCommand
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<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.