pub struct CommandEntry {
pub name: String,
pub description: String,
pub args: Vec<CommandArg>,
pub variants: Vec<Vec<CommandArg>>,
pub handler: CommandHandler,
}Expand description
A registered command entry.
Fields§
§name: StringCommand name without the leading /.
description: StringShort description for help listing.
args: Vec<CommandArg>Single argument list (used when variants is empty).
variants: Vec<Vec<CommandArg>>Multiple argument variants for polymorphic commands.
handler: CommandHandlerThe command handler function.
Auto Trait Implementations§
impl Freeze for CommandEntry
impl !RefUnwindSafe for CommandEntry
impl Send for CommandEntry
impl Sync for CommandEntry
impl Unpin for CommandEntry
impl UnsafeUnpin for CommandEntry
impl !UnwindSafe for CommandEntry
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