pub struct StaticMultiSelectElement { /* private fields */ }Expand description
A menu for selecting multiple options defined in the payload.
Slack reference. Use options or option groups, not both.
Implementations§
Source§impl StaticMultiSelectElement
impl StaticMultiSelectElement
Sourcepub fn builder() -> StaticMultiSelectElementBuilder
pub fn builder() -> StaticMultiSelectElementBuilder
Starts a builder with the documented model defaults.
Sourcepub fn into_builder(self) -> StaticMultiSelectElementBuilder
pub fn into_builder(self) -> StaticMultiSelectElementBuilder
Moves every field into an editable builder, preserving explicit omissions.
Sourcepub fn action_id(&self) -> Option<&str>
pub fn action_id(&self) -> Option<&str>
Borrows or copies action_id. Sets the identifier Slack returns in interaction payloads when a user acts on this element. It must be unique among the elements of its block.
Sourcepub fn options(&self) -> Option<&[SelectOption]>
pub fn options(&self) -> Option<&[SelectOption]>
Borrows or copies options. Adds selectable options in display order.
Sourcepub fn option_groups(&self) -> Option<&[SelectOptionGroup]>
pub fn option_groups(&self) -> Option<&[SelectOptionGroup]>
Borrows or copies option_groups. Adds labelled groups of options in display order. Cannot be combined with ungrouped options.
Sourcepub fn initial_options(&self) -> Option<&[SelectOption]>
pub fn initial_options(&self) -> Option<&[SelectOption]>
Borrows or copies initial_options. Adds options that are selected when the element loads. Each must match an option in the element.
Sourcepub fn confirm(&self) -> Option<&ConfirmationDialogue>
pub fn confirm(&self) -> Option<&ConfirmationDialogue>
Borrows or copies confirm. Sets a confirmation dialog shown before the action is sent.
Sourcepub fn max_selected_items(&self) -> Option<i64>
pub fn max_selected_items(&self) -> Option<i64>
Borrows or copies max_selected_items. Sets the maximum number of items a user can select.
Sourcepub fn focus_on_load(&self) -> Option<bool>
pub fn focus_on_load(&self) -> Option<bool>
Borrows or copies focus_on_load. Sets whether the element receives focus when the view opens. Only one element per view may do so.
Sourcepub fn placeholder(&self) -> Option<&PlainText>
pub fn placeholder(&self) -> Option<&PlainText>
Borrows or copies placeholder. Sets the placeholder text shown before a value is chosen.
Sourcepub fn extensions(&self) -> &Map<String, Value>
pub fn extensions(&self) -> &Map<String, Value>
Borrows checked, unmodeled JSON extension fields.