pub struct CommandInfo {
pub name: &'static str,
pub args: &'static str,
pub description: &'static str,
pub category: SlashCategory,
pub feature_gate: Option<&'static str>,
}Expand description
Static metadata about a registered command, used for /help output generation.
Fields§
§name: &'static strCommand name including the leading slash, e.g. "/help".
args: &'static strArgument hint shown after the command name in help, e.g. "[path]".
description: &'static strOne-line description shown in /help output.
category: SlashCategoryCategory for grouping in /help.
feature_gate: Option<&'static str>Feature gate label, if this command is conditionally compiled.
Auto Trait Implementations§
impl Freeze for CommandInfo
impl RefUnwindSafe for CommandInfo
impl Send for CommandInfo
impl Sync for CommandInfo
impl Unpin for CommandInfo
impl UnsafeUnpin for CommandInfo
impl UnwindSafe for CommandInfo
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