pub struct SlashCommand {
pub name: String,
pub description: String,
}Expand description
A slash command advertised via available_commands_update.
Fields§
§name: String§description: StringTrait Implementations§
Source§impl Clone for SlashCommand
impl Clone for SlashCommand
Source§impl Debug for SlashCommand
impl Debug for SlashCommand
Source§impl<'de> Deserialize<'de> for SlashCommand
impl<'de> Deserialize<'de> for SlashCommand
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq 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