pub struct PluginCommand {Show 17 fields
pub name: String,
pub description: String,
pub allowed_tools: Vec<String>,
pub argument_hint: Option<String>,
pub arg_names: Vec<String>,
pub when_to_use: Option<String>,
pub version: Option<String>,
pub model: Option<String>,
pub effort: Option<u8>,
pub disable_model_invocation: bool,
pub user_invocable: bool,
pub content: String,
pub source_path: Option<String>,
pub plugin_name: String,
pub plugin_source: String,
pub is_skill: bool,
pub content_length: usize,
}Expand description
A plugin command definition
Fields§
§name: StringUnique command name (e.g., “my-plugin:my-command”)
description: StringHuman-readable description
allowed_tools: Vec<String>Tools allowed when executing this command
argument_hint: Option<String>Hint for command arguments
arg_names: Vec<String>Argument names parsed from frontmatter
when_to_use: Option<String>When to use this command
version: Option<String>Command version
model: Option<String>Model to use for this command
effort: Option<u8>Effort level
disable_model_invocation: boolWhether to disable model invocation
user_invocable: boolWhether the command can be invoked by user
content: StringThe command content/prompt
source_path: Option<String>Path to the command file
plugin_name: StringPlugin info
plugin_source: String§is_skill: boolWhether this is a skill (loaded from skills directory)
content_length: usizeContent length for optimization
Trait Implementations§
Source§impl Clone for PluginCommand
impl Clone for PluginCommand
Source§fn clone(&self) -> PluginCommand
fn clone(&self) -> PluginCommand
Returns a duplicate of the value. Read more
1.0.0 · 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 PluginCommand
impl RefUnwindSafe for PluginCommand
impl Send for PluginCommand
impl Sync for PluginCommand
impl Unpin for PluginCommand
impl UnsafeUnpin for PluginCommand
impl UnwindSafe for PluginCommand
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