pub enum CommandResult {
Info(String),
Quit,
ModelChanged(String),
ShowHelp,
Reloaded,
NewSession,
SessionSwitched {
path: PathBuf,
},
SessionInfo {
session_id: String,
file_path: Option<PathBuf>,
name: Option<String>,
message_count: usize,
},
OpenSessionSelector,
SessionNamed {
name: String,
},
}Expand description
Result of executing a slash command.
Variants§
Info(String)
Command handled, show this info message.
Quit
Command caused a quit request.
ModelChanged(String)
Command switched the model (new model name).
ShowHelp
Show keyboard shortcuts help overlay.
Reloaded
Reload settings and auth from disk.
NewSession
Start a new session (clear conversation).
SessionSwitched
Switch to a different session file.
SessionInfo
Show session info (ID, file, messages, tokens, cost).
OpenSessionSelector
Open session selector UI.
SessionNamed
Name was set for the session.
Trait Implementations§
Source§impl Clone for CommandResult
impl Clone for CommandResult
Source§fn clone(&self) -> CommandResult
fn clone(&self) -> CommandResult
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 moreAuto Trait Implementations§
impl Freeze for CommandResult
impl RefUnwindSafe for CommandResult
impl Send for CommandResult
impl Sync for CommandResult
impl Unpin for CommandResult
impl UnsafeUnpin for CommandResult
impl UnwindSafe for CommandResult
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