pub struct SlashCommand {
pub name: String,
pub description: String,
pub handler: Box<dyn CommandHandler>,
}Expand description
A registered slash command.
Fields§
§name: String§description: String§handler: Box<dyn CommandHandler>Auto Trait Implementations§
impl !RefUnwindSafe for SlashCommand
impl !UnwindSafe for SlashCommand
impl Freeze for SlashCommand
impl Send for SlashCommand
impl Sync for SlashCommand
impl Unpin for SlashCommand
impl UnsafeUnpin for SlashCommand
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