pub struct CommandSummary {
pub file_stem: String,
pub description: Option<String>,
pub argument_hint: Option<String>,
pub allowed_tools: Vec<String>,
pub model: Option<String>,
pub disable_model_invocation: Option<bool>,
pub file_path: PathBuf,
pub size_bytes: u64,
}Expand description
Lightweight metadata for one slash command, returned by
CommandsRoot::list.
Fields§
§file_stem: StringFilename stem (<stem>.md). This is the slash command name –
/<stem> is what users type.
description: Option<String>Frontmatter description if present.
argument_hint: Option<String>Frontmatter argument-hint if present – placeholder text
shown next to $ARGUMENTS in the UI.
allowed_tools: Vec<String>Frontmatter allowed-tools parsed as a comma-separated list.
Empty when absent.
model: Option<String>Frontmatter model if present (model override for this
command).
disable_model_invocation: Option<bool>Frontmatter disable-model-invocation if present and true.
None when absent.
file_path: PathBufAbsolute path to the source file.
size_bytes: u64File size in bytes; useful for cheap UI hints.
Trait Implementations§
Source§impl Clone for CommandSummary
impl Clone for CommandSummary
Source§fn clone(&self) -> CommandSummary
fn clone(&self) -> CommandSummary
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 CommandSummary
impl Debug for CommandSummary
Auto Trait Implementations§
impl Freeze for CommandSummary
impl RefUnwindSafe for CommandSummary
impl Send for CommandSummary
impl Sync for CommandSummary
impl Unpin for CommandSummary
impl UnsafeUnpin for CommandSummary
impl UnwindSafe for CommandSummary
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