pub struct CommandDefinition {
pub name: String,
pub description: String,
pub usage: String,
pub handler: CommandHandler,
}Expand description
Command definition registered by an extension.
Fields§
§name: StringUnique command name.
description: StringHuman-readable description.
usage: StringUsage string (e.g., “command [options] <args>”).
handler: CommandHandlerCommand handler function.
Implementations§
Auto Trait Implementations§
impl Freeze for CommandDefinition
impl !RefUnwindSafe for CommandDefinition
impl Send for CommandDefinition
impl Sync for CommandDefinition
impl Unpin for CommandDefinition
impl !UnwindSafe for CommandDefinition
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