pub struct SlackBlockButtonElement {
pub action_id: SlackActionId,
pub text: SlackBlockPlainTextOnly,
pub url: Option<Url>,
pub value: Option<String>,
pub style: Option<SlackBlockButtonStyle>,
pub confirm: Option<SlackBlockConfirmItem>,
pub accessibility_label: Option<SlackAccessibilityLabel>,
}Fields§
§action_id: SlackActionId§text: SlackBlockPlainTextOnly§url: Option<Url>§value: Option<String>§style: Option<SlackBlockButtonStyle>§confirm: Option<SlackBlockConfirmItem>§accessibility_label: Option<SlackAccessibilityLabel>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: SlackBlockButtonStyle) -> &mut Self
pub fn reset_style(&mut self) -> &mut Self
pub fn mopt_style(&mut self, value: Option<SlackBlockButtonStyle>) -> &mut Self
pub fn with_style(self, value: SlackBlockButtonStyle) -> Self
pub fn without_style(self) -> Self
pub fn opt_style(self, value: Option<SlackBlockButtonStyle>) -> 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
pub fn accessibility_label( &mut self, value: SlackAccessibilityLabel, ) -> &mut Self
pub fn reset_accessibility_label(&mut self) -> &mut Self
pub fn mopt_accessibility_label( &mut self, value: Option<SlackAccessibilityLabel>, ) -> &mut Self
pub fn with_accessibility_label(self, value: SlackAccessibilityLabel) -> Self
pub fn without_accessibility_label(self) -> Self
pub fn opt_accessibility_label( self, value: Option<SlackAccessibilityLabel>, ) -> Self
Trait Implementations§
Source§impl Clone for SlackBlockButtonElement
impl Clone for SlackBlockButtonElement
Source§fn clone(&self) -> SlackBlockButtonElement
fn clone(&self) -> SlackBlockButtonElement
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 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<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 SlackCardActionBlockElement
impl From<SlackBlockButtonElement> for SlackCardActionBlockElement
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 for SlackBlockButtonElement
impl PartialEq for SlackBlockButtonElement
Source§impl Serialize for SlackBlockButtonElement
impl Serialize for SlackBlockButtonElement
impl StructuralPartialEq for SlackBlockButtonElement
Auto Trait Implementations§
impl Freeze for SlackBlockButtonElement
impl RefUnwindSafe for SlackBlockButtonElement
impl Send for SlackBlockButtonElement
impl Sync for SlackBlockButtonElement
impl Unpin for SlackBlockButtonElement
impl UnsafeUnpin for SlackBlockButtonElement
impl UnwindSafe for SlackBlockButtonElement
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