pub enum SlashCommandKind {
Builtin,
Skill,
Client,
Unknown,
}Expand description
Coarse command category for grouping and behavior: runtime built-in, skill-backed command, or SDK/client-owned command
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Variants§
Builtin
Command implemented by the runtime.
Skill
Command backed by a skill.
Client
Command registered by an SDK client or extension.
Unknown
Unknown variant for forward compatibility.
Trait Implementations§
Source§impl Clone for SlashCommandKind
impl Clone for SlashCommandKind
Source§fn clone(&self) -> SlashCommandKind
fn clone(&self) -> SlashCommandKind
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 moreSource§impl Debug for SlashCommandKind
impl Debug for SlashCommandKind
Source§impl Default for SlashCommandKind
impl Default for SlashCommandKind
Source§fn default() -> SlashCommandKind
fn default() -> SlashCommandKind
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SlashCommandKind
impl<'de> Deserialize<'de> for SlashCommandKind
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 SlashCommandKind
Source§impl PartialEq for SlashCommandKind
impl PartialEq for SlashCommandKind
Source§fn eq(&self, other: &SlashCommandKind) -> bool
fn eq(&self, other: &SlashCommandKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SlashCommandKind
impl Serialize for SlashCommandKind
impl StructuralPartialEq for SlashCommandKind
Auto Trait Implementations§
impl Freeze for SlashCommandKind
impl RefUnwindSafe for SlashCommandKind
impl Send for SlashCommandKind
impl Sync for SlashCommandKind
impl Unpin for SlashCommandKind
impl UnsafeUnpin for SlashCommandKind
impl UnwindSafe for SlashCommandKind
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