pub struct SkillCommand {
pub name: String,
pub description: String,
pub aliases: Vec<String>,
pub argument_hint: String,
pub allowed_tools: Option<Vec<String>>,
pub prompt_template: String,
pub source_path: PathBuf,
}Expand description
A skill-backed slash command parsed from a .md file.
Fields§
§name: StringCommand name (no leading /).
description: StringShort description shown in /help and the completion popup.
aliases: Vec<String>Alternative invocation names.
argument_hint: StringArgument hint shown after the command name in usage.
allowed_tools: Option<Vec<String>>Optional explicit tool allow-list (enforcement deferred to v2).
prompt_template: StringThe prompt template body (with $ARGUMENTS / {{args}} intact).
source_path: PathBufFilesystem path the skill was loaded from.
Implementations§
Trait Implementations§
Source§impl Clone for SkillCommand
impl Clone for SkillCommand
Source§fn clone(&self) -> SkillCommand
fn clone(&self) -> SkillCommand
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 SkillCommand
impl RefUnwindSafe for SkillCommand
impl Send for SkillCommand
impl Sync for SkillCommand
impl Unpin for SkillCommand
impl UnsafeUnpin for SkillCommand
impl UnwindSafe for SkillCommand
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<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more