pub struct SlashCommand {
pub name: String,
pub description: Option<String>,
pub source: CommandSource,
pub source_info: SourceInfo,
}Expand description
A command a prompt can invoke, in get_commands data.
Fields§
§name: String§description: Option<String>§source: CommandSource§source_info: SourceInfoTrait Implementations§
Source§impl Clone for SlashCommand
impl Clone for SlashCommand
Source§impl Debug for SlashCommand
impl Debug for SlashCommand
Source§impl PartialEq for SlashCommand
impl PartialEq for SlashCommand
Source§impl Serialize for SlashCommand
impl Serialize for SlashCommand
impl StructuralPartialEq for SlashCommand
Auto Trait Implementations§
impl Freeze for SlashCommand
impl RefUnwindSafe for SlashCommand
impl Send for SlashCommand
impl Sync for SlashCommand
impl Unpin for SlashCommand
impl UnsafeUnpin for SlashCommand
impl UnwindSafe 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