Struct slack_morphism::prelude::SlackBlockButtonElement
source · pub struct SlackBlockButtonElement {
pub action_id: SlackActionId,
pub text: SlackBlockPlainTextOnly,
pub url: Option<Url>,
pub value: Option<String>,
pub style: Option<String>,
pub confirm: Option<SlackBlockConfirmItem>,
}Fields§
§action_id: SlackActionId§text: SlackBlockPlainTextOnly§url: Option<Url>§value: Option<String>§style: Option<String>§confirm: Option<SlackBlockConfirmItem>Implementations§
source§impl SlackBlockButtonElement
impl SlackBlockButtonElement
pub fn new(action_id: SlackActionId, text: SlackBlockPlainTextOnly) -> Self
pub fn action_id(&mut self, value: SlackActionId) -> &mut Self
pub fn with_action_id(self, value: SlackActionId) -> Self
pub fn text(&mut self, value: SlackBlockPlainTextOnly) -> &mut Self
pub fn with_text(self, value: SlackBlockPlainTextOnly) -> Self
pub fn url(&mut self, value: Url) -> &mut Self
pub fn reset_url(&mut self) -> &mut Self
pub fn mopt_url(&mut self, value: Option<Url>) -> &mut Self
pub fn with_url(self, value: Url) -> Self
pub fn without_url(self) -> Self
pub fn opt_url(self, value: Option<Url>) -> Self
pub fn value(&mut self, value: String) -> &mut Self
pub fn reset_value(&mut self) -> &mut Self
pub fn mopt_value(&mut self, value: Option<String>) -> &mut Self
pub fn with_value(self, value: String) -> Self
pub fn without_value(self) -> Self
pub fn opt_value(self, value: Option<String>) -> Self
pub fn style(&mut self, value: String) -> &mut Self
pub fn reset_style(&mut self) -> &mut Self
pub fn mopt_style(&mut self, value: Option<String>) -> &mut Self
pub fn with_style(self, value: String) -> Self
pub fn without_style(self) -> Self
pub fn opt_style(self, value: Option<String>) -> Self
pub fn confirm(&mut self, value: SlackBlockConfirmItem) -> &mut Self
pub fn reset_confirm(&mut self) -> &mut Self
pub fn mopt_confirm(&mut self, value: Option<SlackBlockConfirmItem>) -> &mut Self
pub fn with_confirm(self, value: SlackBlockConfirmItem) -> Self
pub fn without_confirm(self) -> Self
pub fn opt_confirm(self, value: Option<SlackBlockConfirmItem>) -> Self
Trait Implementations§
source§impl Clone for SlackBlockButtonElement
impl Clone for SlackBlockButtonElement
source§fn clone(&self) -> SlackBlockButtonElement
fn clone(&self) -> SlackBlockButtonElement
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 SlackBlockButtonElement
impl Debug for SlackBlockButtonElement
source§impl<'de> Deserialize<'de> for SlackBlockButtonElement
impl<'de> Deserialize<'de> for SlackBlockButtonElement
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<SlackBlockButtonElement> for SlackActionBlockElement
impl From<SlackBlockButtonElement> for SlackActionBlockElement
source§fn from(element: SlackBlockButtonElement) -> Self
fn from(element: SlackBlockButtonElement) -> Self
Converts to this type from the input type.
source§impl From<SlackBlockButtonElement> for SlackSectionBlockElement
impl From<SlackBlockButtonElement> for SlackSectionBlockElement
source§fn from(element: SlackBlockButtonElement) -> Self
fn from(element: SlackBlockButtonElement) -> Self
Converts to this type from the input type.
source§impl From<SlackBlockButtonElementInit> for SlackBlockButtonElement
impl From<SlackBlockButtonElementInit> for SlackBlockButtonElement
source§fn from(value: SlackBlockButtonElementInit) -> Self
fn from(value: SlackBlockButtonElementInit) -> Self
Converts to this type from the input type.
source§impl PartialEq<SlackBlockButtonElement> for SlackBlockButtonElement
impl PartialEq<SlackBlockButtonElement> for SlackBlockButtonElement
source§fn eq(&self, other: &SlackBlockButtonElement) -> bool
fn eq(&self, other: &SlackBlockButtonElement) -> bool
This method tests for
self and other values to be equal, and is used
by ==.