pub struct SelectBlockElement {
pub placeholder: TextBlockObject,
pub action_id: String,
pub options: Vec<OptionBlockObject>,
pub option_groups: Option<Vec<OptionGroupBlockObject>>,
pub initial_option: Option<OptionBlockObject>,
pub initial_users: Option<Vec<String>>,
pub initial_conversations: Option<Vec<String>>,
pub initial_channels: Option<Vec<String>>,
pub confirm: Option<ConfirmationBlockObject>,
pub min_query_length: Option<i32>,
pub max_selected_items: Option<i32>,
pub focus_on_load: Option<bool>,
}Expand description
A select menu, just as with a standard HTML
Fields§
§placeholder: TextBlockObject§action_id: String§options: Vec<OptionBlockObject>§option_groups: Option<Vec<OptionGroupBlockObject>>§initial_option: Option<OptionBlockObject>§initial_users: Option<Vec<String>>§initial_conversations: Option<Vec<String>>§initial_channels: Option<Vec<String>>§confirm: Option<ConfirmationBlockObject>§min_query_length: Option<i32>§max_selected_items: Option<i32>§focus_on_load: Option<bool>Implementations§
Source§impl SelectBlockElement
impl SelectBlockElement
pub fn builder( placeholder: TextBlockObject, action_id: String, options: Vec<OptionBlockObject>, ) -> SelectBlockElementBuilder
Trait Implementations§
Source§impl Debug for SelectBlockElement
impl Debug for SelectBlockElement
Source§impl Default for SelectBlockElement
impl Default for SelectBlockElement
Source§fn default() -> SelectBlockElement
fn default() -> SelectBlockElement
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SelectBlockElement
impl<'de> Deserialize<'de> for SelectBlockElement
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 PartialEq for SelectBlockElement
impl PartialEq for SelectBlockElement
Source§impl Serialize for SelectBlockElement
impl Serialize for SelectBlockElement
impl StructuralPartialEq for SelectBlockElement
Auto Trait Implementations§
impl Freeze for SelectBlockElement
impl RefUnwindSafe for SelectBlockElement
impl Send for SelectBlockElement
impl Sync for SelectBlockElement
impl Unpin for SelectBlockElement
impl UnwindSafe for SelectBlockElement
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