pub struct SlashCommandOption {
pub name: String,
pub description: String,
pub option_type: u8,
pub required: Option<bool>,
}Expand description
Slash command option.
Fields§
§name: String§description: String§option_type: u83 = string, 5 = boolean
required: Option<bool>Trait Implementations§
Source§impl Clone for SlashCommandOption
impl Clone for SlashCommandOption
Source§fn clone(&self) -> SlashCommandOption
fn clone(&self) -> SlashCommandOption
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 Debug for SlashCommandOption
impl Debug for SlashCommandOption
Auto Trait Implementations§
impl Freeze for SlashCommandOption
impl RefUnwindSafe for SlashCommandOption
impl Send for SlashCommandOption
impl Sync for SlashCommandOption
impl Unpin for SlashCommandOption
impl UnsafeUnpin for SlashCommandOption
impl UnwindSafe for SlashCommandOption
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