Struct twilight_model::channel::message::component::SelectMenuOption
source · pub struct SelectMenuOption {
pub default: bool,
pub description: Option<String>,
pub emoji: Option<ReactionType>,
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<ReactionType>
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<SelectMenuOption> for SelectMenuOption
impl PartialEq<SelectMenuOption> for SelectMenuOption
source§fn eq(&self, other: &SelectMenuOption) -> bool
fn eq(&self, other: &SelectMenuOption) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.