Struct slack_morphism::prelude::blocks::SlackModalView
source · [−]pub struct SlackModalView {
pub title: SlackBlockPlainTextOnly,
pub blocks: Vec<SlackBlock, Global>,
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: SlackBlockPlainTextOnlyblocks: Vec<SlackBlock, Global>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
sourceimpl SlackModalView
impl SlackModalView
pub fn new(
title: SlackBlockPlainTextOnly,
blocks: Vec<SlackBlock, Global>
) -> SlackModalView
pub fn title(&mut self, value: SlackBlockPlainTextOnly) -> &mut SlackModalView
pub fn with_title(self, value: SlackBlockPlainTextOnly) -> SlackModalView
pub fn blocks(&mut self, value: Vec<SlackBlock, Global>) -> &mut SlackModalView
pub fn with_blocks(self, value: Vec<SlackBlock, Global>) -> SlackModalView
pub fn close(&mut self, value: SlackBlockPlainTextOnly) -> &mut SlackModalView
pub fn reset_close(&mut self) -> &mut SlackModalView
pub fn mopt_close(
&mut self,
value: Option<SlackBlockPlainTextOnly>
) -> &mut SlackModalView
pub fn with_close(self, value: SlackBlockPlainTextOnly) -> SlackModalView
pub fn without_close(self) -> SlackModalView
pub fn opt_close(self, value: Option<SlackBlockPlainTextOnly>) -> SlackModalView
pub fn submit(&mut self, value: SlackBlockPlainTextOnly) -> &mut SlackModalView
pub fn reset_submit(&mut self) -> &mut SlackModalView
pub fn mopt_submit(
&mut self,
value: Option<SlackBlockPlainTextOnly>
) -> &mut SlackModalView
pub fn with_submit(self, value: SlackBlockPlainTextOnly) -> SlackModalView
pub fn without_submit(self) -> SlackModalView
pub fn opt_submit(
self,
value: Option<SlackBlockPlainTextOnly>
) -> SlackModalView
pub fn private_metadata(&mut self, value: String) -> &mut SlackModalView
pub fn reset_private_metadata(&mut self) -> &mut SlackModalView
pub fn mopt_private_metadata(
&mut self,
value: Option<String>
) -> &mut SlackModalView
pub fn with_private_metadata(self, value: String) -> SlackModalView
pub fn without_private_metadata(self) -> SlackModalView
pub fn opt_private_metadata(self, value: Option<String>) -> SlackModalView
pub fn callback_id(&mut self, value: SlackCallbackId) -> &mut SlackModalView
pub fn reset_callback_id(&mut self) -> &mut SlackModalView
pub fn mopt_callback_id(
&mut self,
value: Option<SlackCallbackId>
) -> &mut SlackModalView
pub fn with_callback_id(self, value: SlackCallbackId) -> SlackModalView
pub fn without_callback_id(self) -> SlackModalView
pub fn opt_callback_id(self, value: Option<SlackCallbackId>) -> SlackModalView
pub fn clear_on_close(&mut self, value: bool) -> &mut SlackModalView
pub fn reset_clear_on_close(&mut self) -> &mut SlackModalView
pub fn mopt_clear_on_close(
&mut self,
value: Option<bool>
) -> &mut SlackModalView
pub fn with_clear_on_close(self, value: bool) -> SlackModalView
pub fn without_clear_on_close(self) -> SlackModalView
pub fn opt_clear_on_close(self, value: Option<bool>) -> SlackModalView
pub fn notify_on_close(&mut self, value: bool) -> &mut SlackModalView
pub fn reset_notify_on_close(&mut self) -> &mut SlackModalView
pub fn mopt_notify_on_close(
&mut self,
value: Option<bool>
) -> &mut SlackModalView
pub fn with_notify_on_close(self, value: bool) -> SlackModalView
pub fn without_notify_on_close(self) -> SlackModalView
pub fn opt_notify_on_close(self, value: Option<bool>) -> SlackModalView
pub fn hash(&mut self, value: String) -> &mut SlackModalView
pub fn reset_hash(&mut self) -> &mut SlackModalView
pub fn mopt_hash(&mut self, value: Option<String>) -> &mut SlackModalView
pub fn with_hash(self, value: String) -> SlackModalView
pub fn without_hash(self) -> SlackModalView
pub fn opt_hash(self, value: Option<String>) -> SlackModalView
pub fn external_id(&mut self, value: String) -> &mut SlackModalView
pub fn reset_external_id(&mut self) -> &mut SlackModalView
pub fn mopt_external_id(&mut self, value: Option<String>) -> &mut SlackModalView
pub fn with_external_id(self, value: String) -> SlackModalView
pub fn without_external_id(self) -> SlackModalView
pub fn opt_external_id(self, value: Option<String>) -> SlackModalView
Trait Implementations
sourceimpl Clone for SlackModalView
impl Clone for SlackModalView
sourcepub fn clone(&self) -> SlackModalView
pub fn clone(&self) -> SlackModalView
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for SlackModalView
impl Debug for SlackModalView
sourceimpl<'de> Deserialize<'de> for SlackModalView
impl<'de> Deserialize<'de> for SlackModalView
sourcepub fn deserialize<__D>(
__deserializer: __D
) -> Result<SlackModalView, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<SlackModalView, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl From<SlackModalViewInit> for SlackModalView
impl From<SlackModalViewInit> for SlackModalView
sourcepub fn from(value: SlackModalViewInit) -> SlackModalView
pub fn from(value: SlackModalViewInit) -> SlackModalView
Performs the conversion.
sourceimpl PartialEq<SlackModalView> for SlackModalView
impl PartialEq<SlackModalView> for SlackModalView
sourcepub fn eq(&self, other: &SlackModalView) -> bool
pub fn eq(&self, other: &SlackModalView) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcepub fn ne(&self, other: &SlackModalView) -> bool
pub fn ne(&self, other: &SlackModalView) -> bool
This method tests for !=.
sourceimpl Serialize for SlackModalView
impl Serialize for SlackModalView
sourcepub 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
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more