pub struct SlashCommand<State>where
State: StateBound,{ /* private fields */ }Expand description
A slash command.
Trait Implementations§
Source§impl<State> Clone for SlashCommand<State>where
State: StateBound + Clone,
impl<State> Clone for SlashCommand<State>where
State: StateBound + Clone,
Source§fn clone(&self) -> SlashCommand<State>
fn clone(&self) -> SlashCommand<State>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<State> CommandIntoCommandNode<State> for SlashCommand<State>where
State: StateBound,
impl<State> CommandIntoCommandNode<State> for SlashCommand<State>where
State: StateBound,
Source§fn into_command_node(self) -> CommandNode<State>
fn into_command_node(self) -> CommandNode<State>
Converts the current type into a
CommandNode. Read moreSource§impl<State> From<SlashCommand<State>> for Commandwhere
State: StateBound,
impl<State> From<SlashCommand<State>> for Commandwhere
State: StateBound,
Source§fn from(value: SlashCommand<State>) -> Self
fn from(value: SlashCommand<State>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<State> Freeze for SlashCommand<State>
impl<State> !RefUnwindSafe for SlashCommand<State>
impl<State> Send for SlashCommand<State>
impl<State> Sync for SlashCommand<State>
impl<State> Unpin for SlashCommand<State>
impl<State> UnsafeUnpin for SlashCommand<State>
impl<State> !UnwindSafe for SlashCommand<State>
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