pub struct RegisterCommand {
pub name: String,
pub description: String,
}Expand description
Registers a slash command.
Fields§
§name: String§description: StringTrait Implementations§
Source§impl Clone for RegisterCommand
impl Clone for RegisterCommand
Source§fn clone(&self) -> RegisterCommand
fn clone(&self) -> RegisterCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RegisterCommand
impl Debug for RegisterCommand
Source§impl Default for RegisterCommand
impl Default for RegisterCommand
Source§fn default() -> RegisterCommand
fn default() -> RegisterCommand
Returns the “default value” for a type. Read more
impl Eq for RegisterCommand
Source§impl PartialEq for RegisterCommand
impl PartialEq for RegisterCommand
impl StructuralPartialEq for RegisterCommand
Auto Trait Implementations§
impl Freeze for RegisterCommand
impl RefUnwindSafe for RegisterCommand
impl Send for RegisterCommand
impl Sync for RegisterCommand
impl Unpin for RegisterCommand
impl UnsafeUnpin for RegisterCommand
impl UnwindSafe for RegisterCommand
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