pub struct SelectMenuOption {
pub default: bool,
pub description: Option<String>,
pub emoji: Option<EmojiReactionType>,
pub label: String,
pub value: String,
}
Expand description
Dropdown options that are part of SelectMenu
.
Fields§
§default: bool
Whether the option will be selected by default.
description: Option<String>
Additional description.
emoji: Option<EmojiReactionType>
Emoji associated with the option. Appears left of the label and description.
label: String
User-facing name.
value: String
Developer defined value.
Trait Implementations§
source§impl Clone for SelectMenuOption
impl Clone for SelectMenuOption
source§fn clone(&self) -> SelectMenuOption
fn clone(&self) -> SelectMenuOption
Returns a copy 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 SelectMenuOption
impl Debug for SelectMenuOption
source§impl<'de> Deserialize<'de> for SelectMenuOption
impl<'de> Deserialize<'de> for SelectMenuOption
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
source§impl Hash for SelectMenuOption
impl Hash for SelectMenuOption
source§impl PartialEq for SelectMenuOption
impl PartialEq for SelectMenuOption
source§impl Serialize for SelectMenuOption
impl Serialize for SelectMenuOption
impl Eq for SelectMenuOption
impl StructuralPartialEq for SelectMenuOption
Auto Trait Implementations§
impl Freeze for SelectMenuOption
impl RefUnwindSafe for SelectMenuOption
impl Send for SelectMenuOption
impl Sync for SelectMenuOption
impl Unpin for SelectMenuOption
impl UnwindSafe for SelectMenuOption
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)