#[non_exhaustive]pub struct Commands {
pub all: Vec<String>,
pub skills: Vec<String>,
}Expand description
What the running agent reports it can do, from its own catalogue.
Emitted as crate::Event::Commands when a run starts. Read from the
agent rather than compiled in, because the set is per-install: skills,
plugins and user-defined commands all appear, and a hardcoded list would
describe the developer’s machine instead of the user’s.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.all: Vec<String>Every command, without leading slashes. Includes the skills below.
skills: Vec<String>The subset that are skills rather than built-in utilities.
Claude Code reports these separately, and the split is the one a user
sees: a skill is a capability someone installed, a utility is part of
the tool. Commands::utilities is the other half.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Commands
impl<'de> Deserialize<'de> for Commands
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Commands
impl StructuralPartialEq for Commands
Auto Trait Implementations§
impl Freeze for Commands
impl RefUnwindSafe for Commands
impl Send for Commands
impl Sync for Commands
impl Unpin for Commands
impl UnsafeUnpin for Commands
impl UnwindSafe for Commands
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