pub struct CommandItem {
pub id: String,
pub name: String,
pub display_name: String,
pub description: String,
pub command_type: String,
pub category: Option<String>,
pub tags: Option<Vec<String>>,
pub metadata: Value,
}Expand description
Represents a unified command item from various sources (workflows, skills, MCP tools)
Fields§
§id: StringUnique identifier for the command (e.g., “workflow-myworkflow”, “skill-myskill”, “mcp-server-tool”)
name: StringShort name/identifier for the command
display_name: StringHuman-readable display name
description: StringDescription of what the command does
command_type: StringType of command: “workflow”, “skill”, or “mcp”
category: Option<String>Optional category for grouping commands
Optional tags for filtering and search
metadata: ValueAdditional metadata specific to the command type
Trait Implementations§
Source§impl Debug for CommandItem
impl Debug for CommandItem
Auto Trait Implementations§
impl Freeze for CommandItem
impl RefUnwindSafe for CommandItem
impl Send for CommandItem
impl Sync for CommandItem
impl Unpin for CommandItem
impl UnsafeUnpin for CommandItem
impl UnwindSafe for CommandItem
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