Struct slack_morphism::prelude::SlackModalView
source · 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
pub fn new(title: SlackBlockPlainTextOnly, blocks: Vec<SlackBlock>) -> Self
pub fn title(&mut self, value: SlackBlockPlainTextOnly) -> &mut Self
pub fn with_title(self, value: SlackBlockPlainTextOnly) -> Self
pub fn blocks(&mut self, value: Vec<SlackBlock>) -> &mut Self
pub fn with_blocks(self, value: Vec<SlackBlock>) -> Self
pub fn close(&mut self, value: SlackBlockPlainTextOnly) -> &mut Self
pub fn reset_close(&mut self) -> &mut Self
pub fn mopt_close( &mut self, value: Option<SlackBlockPlainTextOnly> ) -> &mut Self
pub fn with_close(self, value: SlackBlockPlainTextOnly) -> Self
pub fn without_close(self) -> Self
pub fn opt_close(self, value: Option<SlackBlockPlainTextOnly>) -> Self
pub fn submit(&mut self, value: SlackBlockPlainTextOnly) -> &mut Self
pub fn reset_submit(&mut self) -> &mut Self
pub fn mopt_submit( &mut self, value: Option<SlackBlockPlainTextOnly> ) -> &mut Self
pub fn with_submit(self, value: SlackBlockPlainTextOnly) -> Self
pub fn without_submit(self) -> Self
pub fn opt_submit(self, value: Option<SlackBlockPlainTextOnly>) -> Self
pub fn private_metadata(&mut self, value: String) -> &mut Self
pub fn reset_private_metadata(&mut self) -> &mut Self
pub fn mopt_private_metadata(&mut self, value: Option<String>) -> &mut Self
pub fn with_private_metadata(self, value: String) -> Self
pub fn without_private_metadata(self) -> Self
pub fn opt_private_metadata(self, value: Option<String>) -> Self
pub fn callback_id(&mut self, value: SlackCallbackId) -> &mut Self
pub fn reset_callback_id(&mut self) -> &mut Self
pub fn mopt_callback_id(&mut self, value: Option<SlackCallbackId>) -> &mut Self
pub fn with_callback_id(self, value: SlackCallbackId) -> Self
pub fn without_callback_id(self) -> Self
pub fn opt_callback_id(self, value: Option<SlackCallbackId>) -> Self
pub fn clear_on_close(&mut self, value: bool) -> &mut Self
pub fn reset_clear_on_close(&mut self) -> &mut Self
pub fn mopt_clear_on_close(&mut self, value: Option<bool>) -> &mut Self
pub fn with_clear_on_close(self, value: bool) -> Self
pub fn without_clear_on_close(self) -> Self
pub fn opt_clear_on_close(self, value: Option<bool>) -> Self
pub fn notify_on_close(&mut self, value: bool) -> &mut Self
pub fn reset_notify_on_close(&mut self) -> &mut Self
pub fn mopt_notify_on_close(&mut self, value: Option<bool>) -> &mut Self
pub fn with_notify_on_close(self, value: bool) -> Self
pub fn without_notify_on_close(self) -> Self
pub fn opt_notify_on_close(self, value: Option<bool>) -> Self
pub fn hash(&mut self, value: String) -> &mut Self
pub fn reset_hash(&mut self) -> &mut Self
pub fn mopt_hash(&mut self, value: Option<String>) -> &mut Self
pub fn with_hash(self, value: String) -> Self
pub fn without_hash(self) -> Self
pub fn opt_hash(self, value: Option<String>) -> Self
pub fn external_id(&mut self, value: String) -> &mut Self
pub fn reset_external_id(&mut self) -> &mut Self
pub fn mopt_external_id(&mut self, value: Option<String>) -> &mut Self
pub fn with_external_id(self, value: String) -> Self
pub fn without_external_id(self) -> Self
pub fn opt_external_id(self, value: Option<String>) -> Self
Trait Implementations§
source§impl Clone for SlackModalView
impl Clone for SlackModalView
source§fn clone(&self) -> SlackModalView
fn clone(&self) -> SlackModalView
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SlackModalView
impl Debug for SlackModalView
source§impl<'de> Deserialize<'de> for SlackModalView
impl<'de> Deserialize<'de> for SlackModalView
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<SlackModalViewInit> for SlackModalView
impl From<SlackModalViewInit> for SlackModalView
source§fn from(value: SlackModalViewInit) -> Self
fn from(value: SlackModalViewInit) -> Self
Converts to this type from the input type.
source§impl PartialEq for SlackModalView
impl PartialEq for SlackModalView
source§fn eq(&self, other: &SlackModalView) -> bool
fn eq(&self, other: &SlackModalView) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SlackModalView
impl Serialize for SlackModalView
impl StructuralPartialEq for SlackModalView
Auto Trait Implementations§
impl RefUnwindSafe for SlackModalView
impl Send for SlackModalView
impl Sync for SlackModalView
impl Unpin for SlackModalView
impl UnwindSafe for SlackModalView
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more