Struct twilight_model::application::component::select_menu::SelectMenu [−][src]
pub struct SelectMenu {
pub custom_id: String,
pub disabled: bool,
pub max_values: Option<u8>,
pub min_values: Option<u8>,
pub options: Vec<SelectMenuOption>,
pub placeholder: Option<String>,
}Expand description
Dropdown-style interactive components that render on messages.
Refer to Discord Docs/Message Components for additional information.
Fields
custom_id: StringDeveloper defined identifier.
disabled: boolWhether the select menu is disabled.
Defaults to false.
max_values: Option<u8>Maximum number of options that may be chosen.
min_values: Option<u8>Minimum number of options that must be chosen.
options: Vec<SelectMenuOption>List of available choices.
placeholder: Option<String>Custom placeholder text if no option is selected.
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
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
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
Mutably borrows from an owned value. 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
