Struct slack_morphism::prelude::blocks::SlackBlockConversationsSelectElement [−][src]
pub struct SlackBlockConversationsSelectElement {
pub action_id: SlackActionId,
pub placeholder: SlackBlockPlainTextOnly,
pub initial_conversation: Option<SlackConversationId>,
pub default_to_current_conversation: Option<bool>,
pub confirm: Option<SlackBlockConfirmItem>,
pub response_url_enabled: Option<bool>,
}Fields
action_id: SlackActionIdplaceholder: SlackBlockPlainTextOnlyinitial_conversation: Option<SlackConversationId>default_to_current_conversation: Option<bool>confirm: Option<SlackBlockConfirmItem>response_url_enabled: Option<bool>Implementations
pub fn new(
action_id: SlackActionId,
placeholder: SlackBlockPlainTextOnly
) -> SlackBlockConversationsSelectElement
pub fn action_id(
&mut self,
value: SlackActionId
) -> &mut SlackBlockConversationsSelectElement
pub fn placeholder(
&mut self,
value: SlackBlockPlainTextOnly
) -> &mut SlackBlockConversationsSelectElement
pub fn with_placeholder(
self,
value: SlackBlockPlainTextOnly
) -> SlackBlockConversationsSelectElement
pub fn initial_conversation(
&mut self,
value: SlackConversationId
) -> &mut SlackBlockConversationsSelectElement
pub fn mopt_initial_conversation(
&mut self,
value: Option<SlackConversationId>
) -> &mut SlackBlockConversationsSelectElement
pub fn with_initial_conversation(
self,
value: SlackConversationId
) -> SlackBlockConversationsSelectElement
pub fn opt_initial_conversation(
self,
value: Option<SlackConversationId>
) -> SlackBlockConversationsSelectElement
pub fn default_to_current_conversation(
&mut self,
value: bool
) -> &mut SlackBlockConversationsSelectElement
pub fn reset_default_to_current_conversation(
&mut self
) -> &mut SlackBlockConversationsSelectElement
pub fn mopt_default_to_current_conversation(
&mut self,
value: Option<bool>
) -> &mut SlackBlockConversationsSelectElement
pub fn with_default_to_current_conversation(
self,
value: bool
) -> SlackBlockConversationsSelectElement
pub fn opt_default_to_current_conversation(
self,
value: Option<bool>
) -> SlackBlockConversationsSelectElement
pub fn confirm(
&mut self,
value: SlackBlockConfirmItem
) -> &mut SlackBlockConversationsSelectElement
pub fn mopt_confirm(
&mut self,
value: Option<SlackBlockConfirmItem>
) -> &mut SlackBlockConversationsSelectElement
pub fn with_confirm(
self,
value: SlackBlockConfirmItem
) -> SlackBlockConversationsSelectElement
pub fn opt_confirm(
self,
value: Option<SlackBlockConfirmItem>
) -> SlackBlockConversationsSelectElement
pub fn response_url_enabled(
&mut self,
value: bool
) -> &mut SlackBlockConversationsSelectElement
pub fn mopt_response_url_enabled(
&mut self,
value: Option<bool>
) -> &mut SlackBlockConversationsSelectElement
pub fn opt_response_url_enabled(
self,
value: Option<bool>
) -> SlackBlockConversationsSelectElement
Trait Implementations
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<SlackBlockConversationsSelectElement, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<SlackBlockConversationsSelectElement, <__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 SlackBlockConversationsSelectElement
impl Sync for SlackBlockConversationsSelectElement
Blanket Implementations
Mutably borrows from an owned value. Read more