pub struct SlackBlockMultiExternalSelectElement {
pub action_id: SlackActionId,
pub placeholder: SlackBlockPlainTextOnly,
pub initial_options: Option<Vec<SlackBlockChoiceItem<SlackBlockPlainTextOnly>, Global>>,
pub confirm: Option<SlackBlockConfirmItem>,
pub max_selected_items: Option<u64>,
}
Fields
action_id: SlackActionId
placeholder: SlackBlockPlainTextOnly
initial_options: Option<Vec<SlackBlockChoiceItem<SlackBlockPlainTextOnly>, Global>>
confirm: Option<SlackBlockConfirmItem>
max_selected_items: Option<u64>
Implementations
pub fn new(
action_id: SlackActionId,
placeholder: SlackBlockPlainTextOnly
) -> SlackBlockMultiExternalSelectElement
pub fn action_id(
&mut self,
value: SlackActionId
) -> &mut SlackBlockMultiExternalSelectElement
pub fn placeholder(
&mut self,
value: SlackBlockPlainTextOnly
) -> &mut SlackBlockMultiExternalSelectElement
pub fn with_placeholder(
self,
value: SlackBlockPlainTextOnly
) -> SlackBlockMultiExternalSelectElement
pub fn initial_options(
&mut self,
value: Vec<SlackBlockChoiceItem<SlackBlockPlainTextOnly>, Global>
) -> &mut SlackBlockMultiExternalSelectElement
pub fn mopt_initial_options(
&mut self,
value: Option<Vec<SlackBlockChoiceItem<SlackBlockPlainTextOnly>, Global>>
) -> &mut SlackBlockMultiExternalSelectElement
pub fn with_initial_options(
self,
value: Vec<SlackBlockChoiceItem<SlackBlockPlainTextOnly>, Global>
) -> SlackBlockMultiExternalSelectElement
pub fn opt_initial_options(
self,
value: Option<Vec<SlackBlockChoiceItem<SlackBlockPlainTextOnly>, Global>>
) -> SlackBlockMultiExternalSelectElement
pub fn confirm(
&mut self,
value: SlackBlockConfirmItem
) -> &mut SlackBlockMultiExternalSelectElement
pub fn mopt_confirm(
&mut self,
value: Option<SlackBlockConfirmItem>
) -> &mut SlackBlockMultiExternalSelectElement
pub fn with_confirm(
self,
value: SlackBlockConfirmItem
) -> SlackBlockMultiExternalSelectElement
pub fn opt_confirm(
self,
value: Option<SlackBlockConfirmItem>
) -> SlackBlockMultiExternalSelectElement
pub fn max_selected_items(
&mut self,
value: u64
) -> &mut SlackBlockMultiExternalSelectElement
pub fn mopt_max_selected_items(
&mut self,
value: Option<u64>
) -> &mut SlackBlockMultiExternalSelectElement
pub fn opt_max_selected_items(
self,
value: Option<u64>
) -> SlackBlockMultiExternalSelectElement
Trait Implementations
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<SlackBlockMultiExternalSelectElement, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<SlackBlockMultiExternalSelectElement, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
Performs the conversion.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub 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 Send for SlackBlockMultiExternalSelectElement
impl Sync for SlackBlockMultiExternalSelectElement
Blanket Implementations
Mutably borrows from an owned value. Read more