pub struct SlackBlockChannelsSelectElement {
pub action_id: SlackActionId,
pub placeholder: SlackBlockPlainTextOnly,
pub initial_channel: Option<SlackChannelId>,
pub confirm: Option<SlackBlockConfirmItem>,
pub response_url_enabled: Option<bool>,
}
Fields
action_id: SlackActionId
placeholder: SlackBlockPlainTextOnly
initial_channel: Option<SlackChannelId>
confirm: Option<SlackBlockConfirmItem>
response_url_enabled: Option<bool>
Implementations
pub fn new(
action_id: SlackActionId,
placeholder: SlackBlockPlainTextOnly
) -> SlackBlockChannelsSelectElement
pub fn placeholder(
&mut self,
value: SlackBlockPlainTextOnly
) -> &mut SlackBlockChannelsSelectElement
pub fn with_placeholder(
self,
value: SlackBlockPlainTextOnly
) -> SlackBlockChannelsSelectElement
pub fn initial_channel(
&mut self,
value: SlackChannelId
) -> &mut SlackBlockChannelsSelectElement
pub fn mopt_initial_channel(
&mut self,
value: Option<SlackChannelId>
) -> &mut SlackBlockChannelsSelectElement
pub fn opt_initial_channel(
self,
value: Option<SlackChannelId>
) -> SlackBlockChannelsSelectElement
pub fn confirm(
&mut self,
value: SlackBlockConfirmItem
) -> &mut SlackBlockChannelsSelectElement
pub fn mopt_confirm(
&mut self,
value: Option<SlackBlockConfirmItem>
) -> &mut SlackBlockChannelsSelectElement
pub fn opt_confirm(
self,
value: Option<SlackBlockConfirmItem>
) -> SlackBlockChannelsSelectElement
pub fn mopt_response_url_enabled(
&mut self,
value: Option<bool>
) -> &mut SlackBlockChannelsSelectElement
pub fn opt_response_url_enabled(
self,
value: Option<bool>
) -> SlackBlockChannelsSelectElement
Trait Implementations
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<SlackBlockChannelsSelectElement, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<SlackBlockChannelsSelectElement, <__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 SlackBlockChannelsSelectElement
impl Sync for SlackBlockChannelsSelectElement
impl Unpin for SlackBlockChannelsSelectElement
Blanket Implementations
Mutably borrows from an owned value. Read more