pub struct SlashCommandInfo {
pub name: &'static str,
pub description: &'static str,
pub category: &'static str,
}Expand description
Metadata describing a slash command supported by the chat interface.
Fields§
§name: &'static strCommand name typed after the / prefix (e.g. "compact").
description: &'static strShort human-readable description shown in autocomplete.
category: &'static strCatalog category used to hide commands that only apply to terminals.
Trait Implementations§
Source§impl Clone for SlashCommandInfo
impl Clone for SlashCommandInfo
impl Copy for SlashCommandInfo
Auto Trait Implementations§
impl Forget for SlashCommandInfo
impl Freeze for SlashCommandInfo
impl Move for SlashCommandInfo
impl RefUnwindSafe for SlashCommandInfo
impl Send for SlashCommandInfo
impl Sync for SlashCommandInfo
impl Unpin for SlashCommandInfo
impl UnsafeUnpin for SlashCommandInfo
impl UnwindSafe for SlashCommandInfo
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