pub struct Command {
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 body: String,
pub extra: BTreeMap<String, String>,
}Expand description
Full command record returned by CommandsRoot::get.
Fields§
§file_stem: StringFilename stem (<stem>.md). The slash command name.
description: Option<String>Frontmatter description if present.
argument_hint: Option<String>Frontmatter argument-hint if present.
allowed_tools: Vec<String>Frontmatter allowed-tools parsed as a comma-separated list.
model: Option<String>Frontmatter model if present.
disable_model_invocation: Option<bool>Frontmatter disable-model-invocation if present.
file_path: PathBufAbsolute path to the source file.
body: StringMarkdown body after the frontmatter block (trimmed). The
prompt template; supports $ARGUMENTS substitution.
extra: BTreeMap<String, String>Frontmatter keys other than the typed ones. Preserves unknown future fields verbatim as raw strings.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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