pub struct KiroExtCommand {
pub name: String,
pub description: String,
pub input_hint: Option<String>,
pub meta: Option<KiroCommandMeta>,
}Expand description
A command received from the kiro.dev/commands/available extension notification.
Fields§
§name: String§description: String§input_hint: Option<String>§meta: Option<KiroCommandMeta>Implementations§
Source§impl KiroExtCommand
impl KiroExtCommand
Sourcepub fn is_executable(&self) -> bool
pub fn is_executable(&self) -> bool
Whether this command can be executed via kiro.dev/commands/execute.
Panel commands (like /context, /help) are allowed — they return structured
data that we display in chat. Only selection commands and local-only
commands are excluded.
Trait Implementations§
Source§impl Clone for KiroExtCommand
impl Clone for KiroExtCommand
Source§fn clone(&self) -> KiroExtCommand
fn clone(&self) -> KiroExtCommand
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 moreSource§impl Debug for KiroExtCommand
impl Debug for KiroExtCommand
Source§impl<'de> Deserialize<'de> for KiroExtCommand
impl<'de> Deserialize<'de> for KiroExtCommand
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
Auto Trait Implementations§
impl Freeze for KiroExtCommand
impl RefUnwindSafe for KiroExtCommand
impl Send for KiroExtCommand
impl Sync for KiroExtCommand
impl Unpin for KiroExtCommand
impl UnsafeUnpin for KiroExtCommand
impl UnwindSafe for KiroExtCommand
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