Struct discord_flows::model::component::SelectMenu
source · pub struct SelectMenu {
pub kind: ComponentType,
pub placeholder: Option<String>,
pub custom_id: Option<String>,
pub min_values: Option<u64>,
pub max_values: Option<u64>,
pub options: Vec<SelectMenuOption, Global>,
pub values: Vec<String, Global>,
}
Expand description
A select menu component.
Fields§
§kind: ComponentType
The component type, it will always be ComponentType::SelectMenu
.
placeholder: Option<String>
The placeholder shown when nothing is selected.
custom_id: Option<String>
An identifier defined by the developer for the select menu.
min_values: Option<u64>
The minimum number of selections allowed.
max_values: Option<u64>
The maximum number of selections allowed.
options: Vec<SelectMenuOption, Global>
The options of this select menu.
values: Vec<String, Global>
The result location for modals
Trait Implementations§
source§impl Clone for SelectMenu
impl Clone for SelectMenu
source§fn clone(&self) -> SelectMenu
fn clone(&self) -> SelectMenu
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 SelectMenu
impl Debug for SelectMenu
source§impl<'de> Deserialize<'de> for SelectMenu
impl<'de> Deserialize<'de> for SelectMenu
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<SelectMenu, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<SelectMenu, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<SelectMenu> for ActionRowComponent
impl From<SelectMenu> for ActionRowComponent
source§fn from(component: SelectMenu) -> ActionRowComponent
fn from(component: SelectMenu) -> ActionRowComponent
Converts to this type from the input type.
source§impl Serialize for SelectMenu
impl Serialize for SelectMenu
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 SelectMenu
impl Send for SelectMenu
impl Sync for SelectMenu
impl Unpin for SelectMenu
impl UnwindSafe for SelectMenu
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