pub struct SlackModalView {
pub title: SlackBlockPlainTextOnly,
pub blocks: Vec<SlackBlock>,
pub close: Option<SlackBlockPlainTextOnly>,
pub submit: Option<SlackBlockPlainTextOnly>,
pub private_metadata: Option<String>,
pub callback_id: Option<SlackCallbackId>,
pub clear_on_close: Option<bool>,
pub notify_on_close: Option<bool>,
pub hash: Option<String>,
pub external_id: Option<String>,
}Fields§
§title: SlackBlockPlainTextOnly§blocks: Vec<SlackBlock>§close: Option<SlackBlockPlainTextOnly>§submit: Option<SlackBlockPlainTextOnly>§private_metadata: Option<String>§callback_id: Option<SlackCallbackId>§clear_on_close: Option<bool>§notify_on_close: Option<bool>§hash: Option<String>§external_id: Option<String>Implementations§
Source§impl SlackModalView
impl SlackModalView
Sourcepub fn new(title: SlackBlockPlainTextOnly, blocks: Vec<SlackBlock>) -> Self
pub fn new(title: SlackBlockPlainTextOnly, blocks: Vec<SlackBlock>) -> Self
Creates a new SlackModalView from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn title(&mut self, value: SlackBlockPlainTextOnly) -> &mut Self
pub fn title(&mut self, value: SlackBlockPlainTextOnly) -> &mut Self
Sets title to value.
Sourcepub fn with_title(self, value: SlackBlockPlainTextOnly) -> Self
pub fn with_title(self, value: SlackBlockPlainTextOnly) -> Self
Returns self with title set to value.
Sourcepub fn blocks(&mut self, value: Vec<SlackBlock>) -> &mut Self
pub fn blocks(&mut self, value: Vec<SlackBlock>) -> &mut Self
Sets blocks to value.
Sourcepub fn with_blocks(self, value: Vec<SlackBlock>) -> Self
pub fn with_blocks(self, value: Vec<SlackBlock>) -> Self
Returns self with blocks set to value.
Sourcepub fn close(&mut self, value: SlackBlockPlainTextOnly) -> &mut Self
pub fn close(&mut self, value: SlackBlockPlainTextOnly) -> &mut Self
Sets close to Some(value).
Sourcepub fn reset_close(&mut self) -> &mut Self
pub fn reset_close(&mut self) -> &mut Self
Sets close to None.
Sourcepub fn mopt_close(
&mut self,
value: Option<SlackBlockPlainTextOnly>,
) -> &mut Self
pub fn mopt_close( &mut self, value: Option<SlackBlockPlainTextOnly>, ) -> &mut Self
Sets close to the given Option.
Sourcepub fn with_close(self, value: SlackBlockPlainTextOnly) -> Self
pub fn with_close(self, value: SlackBlockPlainTextOnly) -> Self
Returns self with close set to Some(value).
Sourcepub fn without_close(self) -> Self
pub fn without_close(self) -> Self
Returns self with close set to None.
Sourcepub fn opt_close(self, value: Option<SlackBlockPlainTextOnly>) -> Self
pub fn opt_close(self, value: Option<SlackBlockPlainTextOnly>) -> Self
Returns self with close set to the given Option.
Sourcepub fn submit(&mut self, value: SlackBlockPlainTextOnly) -> &mut Self
pub fn submit(&mut self, value: SlackBlockPlainTextOnly) -> &mut Self
Sets submit to Some(value).
Sourcepub fn reset_submit(&mut self) -> &mut Self
pub fn reset_submit(&mut self) -> &mut Self
Sets submit to None.
Sourcepub fn mopt_submit(
&mut self,
value: Option<SlackBlockPlainTextOnly>,
) -> &mut Self
pub fn mopt_submit( &mut self, value: Option<SlackBlockPlainTextOnly>, ) -> &mut Self
Sets submit to the given Option.
Sourcepub fn with_submit(self, value: SlackBlockPlainTextOnly) -> Self
pub fn with_submit(self, value: SlackBlockPlainTextOnly) -> Self
Returns self with submit set to Some(value).
Sourcepub fn without_submit(self) -> Self
pub fn without_submit(self) -> Self
Returns self with submit set to None.
Sourcepub fn opt_submit(self, value: Option<SlackBlockPlainTextOnly>) -> Self
pub fn opt_submit(self, value: Option<SlackBlockPlainTextOnly>) -> Self
Returns self with submit set to the given Option.
Sourcepub fn private_metadata(&mut self, value: String) -> &mut Self
pub fn private_metadata(&mut self, value: String) -> &mut Self
Sets private_metadata to Some(value).
Sourcepub fn reset_private_metadata(&mut self) -> &mut Self
pub fn reset_private_metadata(&mut self) -> &mut Self
Sets private_metadata to None.
Sourcepub fn mopt_private_metadata(&mut self, value: Option<String>) -> &mut Self
pub fn mopt_private_metadata(&mut self, value: Option<String>) -> &mut Self
Sets private_metadata to the given Option.
Sourcepub fn with_private_metadata(self, value: String) -> Self
pub fn with_private_metadata(self, value: String) -> Self
Returns self with private_metadata set to Some(value).
Sourcepub fn without_private_metadata(self) -> Self
pub fn without_private_metadata(self) -> Self
Returns self with private_metadata set to None.
Sourcepub fn opt_private_metadata(self, value: Option<String>) -> Self
pub fn opt_private_metadata(self, value: Option<String>) -> Self
Returns self with private_metadata set to the given Option.
Sourcepub fn callback_id(&mut self, value: SlackCallbackId) -> &mut Self
pub fn callback_id(&mut self, value: SlackCallbackId) -> &mut Self
Sets callback_id to Some(value).
Sourcepub fn reset_callback_id(&mut self) -> &mut Self
pub fn reset_callback_id(&mut self) -> &mut Self
Sets callback_id to None.
Sourcepub fn mopt_callback_id(&mut self, value: Option<SlackCallbackId>) -> &mut Self
pub fn mopt_callback_id(&mut self, value: Option<SlackCallbackId>) -> &mut Self
Sets callback_id to the given Option.
Sourcepub fn with_callback_id(self, value: SlackCallbackId) -> Self
pub fn with_callback_id(self, value: SlackCallbackId) -> Self
Returns self with callback_id set to Some(value).
Sourcepub fn without_callback_id(self) -> Self
pub fn without_callback_id(self) -> Self
Returns self with callback_id set to None.
Sourcepub fn opt_callback_id(self, value: Option<SlackCallbackId>) -> Self
pub fn opt_callback_id(self, value: Option<SlackCallbackId>) -> Self
Returns self with callback_id set to the given Option.
Sourcepub fn clear_on_close(&mut self, value: bool) -> &mut Self
pub fn clear_on_close(&mut self, value: bool) -> &mut Self
Sets clear_on_close to Some(value).
Sourcepub fn reset_clear_on_close(&mut self) -> &mut Self
pub fn reset_clear_on_close(&mut self) -> &mut Self
Sets clear_on_close to None.
Sourcepub fn mopt_clear_on_close(&mut self, value: Option<bool>) -> &mut Self
pub fn mopt_clear_on_close(&mut self, value: Option<bool>) -> &mut Self
Sets clear_on_close to the given Option.
Sourcepub fn with_clear_on_close(self, value: bool) -> Self
pub fn with_clear_on_close(self, value: bool) -> Self
Returns self with clear_on_close set to Some(value).
Sourcepub fn without_clear_on_close(self) -> Self
pub fn without_clear_on_close(self) -> Self
Returns self with clear_on_close set to None.
Sourcepub fn opt_clear_on_close(self, value: Option<bool>) -> Self
pub fn opt_clear_on_close(self, value: Option<bool>) -> Self
Returns self with clear_on_close set to the given Option.
Sourcepub fn notify_on_close(&mut self, value: bool) -> &mut Self
pub fn notify_on_close(&mut self, value: bool) -> &mut Self
Sets notify_on_close to Some(value).
Sourcepub fn reset_notify_on_close(&mut self) -> &mut Self
pub fn reset_notify_on_close(&mut self) -> &mut Self
Sets notify_on_close to None.
Sourcepub fn mopt_notify_on_close(&mut self, value: Option<bool>) -> &mut Self
pub fn mopt_notify_on_close(&mut self, value: Option<bool>) -> &mut Self
Sets notify_on_close to the given Option.
Sourcepub fn with_notify_on_close(self, value: bool) -> Self
pub fn with_notify_on_close(self, value: bool) -> Self
Returns self with notify_on_close set to Some(value).
Sourcepub fn without_notify_on_close(self) -> Self
pub fn without_notify_on_close(self) -> Self
Returns self with notify_on_close set to None.
Sourcepub fn opt_notify_on_close(self, value: Option<bool>) -> Self
pub fn opt_notify_on_close(self, value: Option<bool>) -> Self
Returns self with notify_on_close set to the given Option.
Sourcepub fn reset_hash(&mut self) -> &mut Self
pub fn reset_hash(&mut self) -> &mut Self
Sets hash to None.
Sourcepub fn without_hash(self) -> Self
pub fn without_hash(self) -> Self
Returns self with hash set to None.
Sourcepub fn opt_hash(self, value: Option<String>) -> Self
pub fn opt_hash(self, value: Option<String>) -> Self
Returns self with hash set to the given Option.
Sourcepub fn external_id(&mut self, value: String) -> &mut Self
pub fn external_id(&mut self, value: String) -> &mut Self
Sets external_id to Some(value).
Sourcepub fn reset_external_id(&mut self) -> &mut Self
pub fn reset_external_id(&mut self) -> &mut Self
Sets external_id to None.
Sourcepub fn mopt_external_id(&mut self, value: Option<String>) -> &mut Self
pub fn mopt_external_id(&mut self, value: Option<String>) -> &mut Self
Sets external_id to the given Option.
Sourcepub fn with_external_id(self, value: String) -> Self
pub fn with_external_id(self, value: String) -> Self
Returns self with external_id set to Some(value).
Sourcepub fn without_external_id(self) -> Self
pub fn without_external_id(self) -> Self
Returns self with external_id set to None.
Sourcepub fn opt_external_id(self, value: Option<String>) -> Self
pub fn opt_external_id(self, value: Option<String>) -> Self
Returns self with external_id set to the given Option.