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

source

pub fn new(title: SlackBlockPlainTextOnly, blocks: Vec<SlackBlock>) -> Self

source

pub fn title(&mut self, value: SlackBlockPlainTextOnly) -> &mut Self

source

pub fn with_title(self, value: SlackBlockPlainTextOnly) -> Self

source

pub fn blocks(&mut self, value: Vec<SlackBlock>) -> &mut Self

source

pub fn with_blocks(self, value: Vec<SlackBlock>) -> Self

source

pub fn close(&mut self, value: SlackBlockPlainTextOnly) -> &mut Self

source

pub fn reset_close(&mut self) -> &mut Self

source

pub fn mopt_close( &mut self, value: Option<SlackBlockPlainTextOnly> ) -> &mut Self

source

pub fn with_close(self, value: SlackBlockPlainTextOnly) -> Self

source

pub fn without_close(self) -> Self

source

pub fn opt_close(self, value: Option<SlackBlockPlainTextOnly>) -> Self

source

pub fn submit(&mut self, value: SlackBlockPlainTextOnly) -> &mut Self

source

pub fn reset_submit(&mut self) -> &mut Self

source

pub fn mopt_submit( &mut self, value: Option<SlackBlockPlainTextOnly> ) -> &mut Self

source

pub fn with_submit(self, value: SlackBlockPlainTextOnly) -> Self

source

pub fn without_submit(self) -> Self

source

pub fn opt_submit(self, value: Option<SlackBlockPlainTextOnly>) -> Self

source

pub fn private_metadata(&mut self, value: String) -> &mut Self

source

pub fn reset_private_metadata(&mut self) -> &mut Self

source

pub fn mopt_private_metadata(&mut self, value: Option<String>) -> &mut Self

source

pub fn with_private_metadata(self, value: String) -> Self

source

pub fn without_private_metadata(self) -> Self

source

pub fn opt_private_metadata(self, value: Option<String>) -> Self

source

pub fn callback_id(&mut self, value: SlackCallbackId) -> &mut Self

source

pub fn reset_callback_id(&mut self) -> &mut Self

source

pub fn mopt_callback_id(&mut self, value: Option<SlackCallbackId>) -> &mut Self

source

pub fn with_callback_id(self, value: SlackCallbackId) -> Self

source

pub fn without_callback_id(self) -> Self

source

pub fn opt_callback_id(self, value: Option<SlackCallbackId>) -> Self

source

pub fn clear_on_close(&mut self, value: bool) -> &mut Self

source

pub fn reset_clear_on_close(&mut self) -> &mut Self

source

pub fn mopt_clear_on_close(&mut self, value: Option<bool>) -> &mut Self

source

pub fn with_clear_on_close(self, value: bool) -> Self

source

pub fn without_clear_on_close(self) -> Self

source

pub fn opt_clear_on_close(self, value: Option<bool>) -> Self

source

pub fn notify_on_close(&mut self, value: bool) -> &mut Self

source

pub fn reset_notify_on_close(&mut self) -> &mut Self

source

pub fn mopt_notify_on_close(&mut self, value: Option<bool>) -> &mut Self

source

pub fn with_notify_on_close(self, value: bool) -> Self

source

pub fn without_notify_on_close(self) -> Self

source

pub fn opt_notify_on_close(self, value: Option<bool>) -> Self

source

pub fn hash(&mut self, value: String) -> &mut Self

source

pub fn reset_hash(&mut self) -> &mut Self

source

pub fn mopt_hash(&mut self, value: Option<String>) -> &mut Self

source

pub fn with_hash(self, value: String) -> Self

source

pub fn without_hash(self) -> Self

source

pub fn opt_hash(self, value: Option<String>) -> Self

source

pub fn external_id(&mut self, value: String) -> &mut Self

source

pub fn reset_external_id(&mut self) -> &mut Self

source

pub fn mopt_external_id(&mut self, value: Option<String>) -> &mut Self

source

pub fn with_external_id(self, value: String) -> Self

source

pub fn without_external_id(self) -> Self

source

pub fn opt_external_id(self, value: Option<String>) -> Self

Trait Implementations§

source§

impl Clone for SlackModalView

source§

fn clone(&self) -> SlackModalView

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SlackModalView

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for SlackModalView

source§

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

source§

fn from(value: SlackModalViewInit) -> Self

Converts to this type from the input type.
source§

impl PartialEq for SlackModalView

source§

fn eq(&self, other: &SlackModalView) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for SlackModalView

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl StructuralPartialEq for SlackModalView

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

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
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,