pub struct SlashCommand {
pub name: String,
pub description: String,
pub aliases: Vec<String>,
}Expand description
A skill-backed slash command. Runtime built-ins are not offered.
Fields§
§name: String§description: String§aliases: Vec<String>Trait Implementations§
Source§impl Clone for SlashCommand
impl Clone for SlashCommand
Source§impl Debug for SlashCommand
impl Debug for SlashCommand
impl Eq for SlashCommand
Source§impl PartialEq for SlashCommand
impl PartialEq for SlashCommand
impl StructuralPartialEq for SlashCommand
Auto Trait Implementations§
impl Forget for SlashCommand
impl Freeze for SlashCommand
impl Move for SlashCommand
impl RefUnwindSafe for SlashCommand
impl Send for SlashCommandwhere
RawVecInner: Send,
impl Sync for SlashCommandwhere
RawVecInner: Sync,
impl Unpin for SlashCommand
impl UnsafeUnpin for SlashCommandwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for SlashCommandwhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.