pub struct CommandDefinition {
pub name: String,
pub aliases: Vec<String>,
pub description: String,
pub command_type: CommandType,
pub argument_hint: Option<String>,
pub is_hidden: bool,
pub availability: Vec<CommandAvailability>,
pub source: CommandSource,
pub handler: CommandHandler,
}Fields§
§name: String§aliases: Vec<String>§description: String§command_type: CommandType§argument_hint: Option<String>§availability: Vec<CommandAvailability>§source: CommandSource§handler: CommandHandlerImplementations§
Trait 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 UnsafeUnpin 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