Struct serenity::model::interactions::message_component::SelectMenuOption [−][src]
pub struct SelectMenuOption {
pub label: String,
pub value: String,
pub description: Option<String>,
pub emoji: Option<ReactionType>,
pub default: bool,
}
Expand description
A select menu component options.
Fields
label: String
The text displayed on this option.
value: String
The value to be sent for this option.
description: Option<String>
The description shown for this option.
emoji: Option<ReactionType>
The emoji displayed on this option.
default: bool
Render this option as the default selection.
Trait Implementations
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
Auto Trait Implementations
impl RefUnwindSafe for SelectMenuOption
impl Send for SelectMenuOption
impl Sync for SelectMenuOption
impl Unpin for SelectMenuOption
impl UnwindSafe for SelectMenuOption
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more