[][src]Struct slack_morphism_models::blocks::SlackBlockButtonElement

pub struct SlackBlockButtonElement {
    pub action_id: SlackActionId,
    pub text: SlackBlockPlainTextOnly,
    pub url: Option<String>,
    pub value: Option<String>,
    pub style: Option<String>,
    pub confirm: Option<SlackBlockConfirmItem>,
}

Fields

action_id: SlackActionIdtext: SlackBlockPlainTextOnlyurl: Option<String>value: Option<String>style: Option<String>confirm: Option<SlackBlockConfirmItem>

Implementations

impl SlackBlockButtonElement[src]

pub fn new(action_id: SlackActionId, text: SlackBlockPlainTextOnly) -> Self[src]

pub fn action_id(&mut self, value: SlackActionId) -> &mut Self[src]

pub fn with_action_id(self, value: SlackActionId) -> Self[src]

pub fn text(&mut self, value: SlackBlockPlainTextOnly) -> &mut Self[src]

pub fn with_text(self, value: SlackBlockPlainTextOnly) -> Self[src]

pub fn url(&mut self, value: String) -> &mut Self[src]

pub fn reset_url(&mut self) -> &mut Self[src]

pub fn mopt_url(&mut self, value: Option<String>) -> &mut Self[src]

pub fn with_url(self, value: String) -> Self[src]

pub fn without_url(self) -> Self[src]

pub fn opt_url(self, value: Option<String>) -> Self[src]

pub fn value(&mut self, value: String) -> &mut Self[src]

pub fn reset_value(&mut self) -> &mut Self[src]

pub fn mopt_value(&mut self, value: Option<String>) -> &mut Self[src]

pub fn with_value(self, value: String) -> Self[src]

pub fn without_value(self) -> Self[src]

pub fn opt_value(self, value: Option<String>) -> Self[src]

pub fn style(&mut self, value: String) -> &mut Self[src]

pub fn reset_style(&mut self) -> &mut Self[src]

pub fn mopt_style(&mut self, value: Option<String>) -> &mut Self[src]

pub fn with_style(self, value: String) -> Self[src]

pub fn without_style(self) -> Self[src]

pub fn opt_style(self, value: Option<String>) -> Self[src]

pub fn confirm(&mut self, value: SlackBlockConfirmItem) -> &mut Self[src]

pub fn reset_confirm(&mut self) -> &mut Self[src]

pub fn mopt_confirm(
    &mut self,
    value: Option<SlackBlockConfirmItem>
) -> &mut Self
[src]

pub fn with_confirm(self, value: SlackBlockConfirmItem) -> Self[src]

pub fn without_confirm(self) -> Self[src]

pub fn opt_confirm(self, value: Option<SlackBlockConfirmItem>) -> Self[src]

Trait Implementations

impl Clone for SlackBlockButtonElement[src]

impl Debug for SlackBlockButtonElement[src]

impl<'de> Deserialize<'de> for SlackBlockButtonElement[src]

impl From<SlackBlockButtonElement> for SlackSectionBlockElement[src]

impl From<SlackBlockButtonElement> for SlackActionBlockElement[src]

impl From<SlackBlockButtonElementInit> for SlackBlockButtonElement[src]

impl PartialEq<SlackBlockButtonElement> for SlackBlockButtonElement[src]

impl Serialize for SlackBlockButtonElement[src]

impl StructuralPartialEq for SlackBlockButtonElement[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.