Struct discord_flows::model::component::SelectMenuOption
source · 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§
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<SelectMenuOption, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<SelectMenuOption, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for SelectMenuOption
impl Serialize for SelectMenuOption
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. 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§
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