pub struct SlackBlockWorkflowButtonElement {
pub action_id: SlackActionId,
pub text: SlackBlockPlainTextOnly,
pub workflow: SlackWorkflow,
pub style: Option<SlackBlockButtonStyle>,
pub accessibility_label: Option<SlackAccessibilityLabel>,
}Expand description
- https://docs.slack.dev/reference/block-kit/block-elements/workflow-button-element
Fields§
§action_id: SlackActionId§text: SlackBlockPlainTextOnly§workflow: SlackWorkflow§style: Option<SlackBlockButtonStyle>§accessibility_label: Option<SlackAccessibilityLabel>Implementations§
Source§impl SlackBlockWorkflowButtonElement
impl SlackBlockWorkflowButtonElement
pub fn new( action_id: SlackActionId, text: SlackBlockPlainTextOnly, workflow: SlackWorkflow, ) -> 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 workflow(&mut self, value: SlackWorkflow) -> &mut Self
pub fn with_workflow(self, value: SlackWorkflow) -> 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 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 SlackBlockWorkflowButtonElement
impl Clone for SlackBlockWorkflowButtonElement
Source§fn clone(&self) -> SlackBlockWorkflowButtonElement
fn clone(&self) -> SlackBlockWorkflowButtonElement
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<'de> Deserialize<'de> for SlackBlockWorkflowButtonElement
impl<'de> Deserialize<'de> for SlackBlockWorkflowButtonElement
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<SlackBlockWorkflowButtonElementInit> for SlackBlockWorkflowButtonElement
impl From<SlackBlockWorkflowButtonElementInit> for SlackBlockWorkflowButtonElement
Source§fn from(value: SlackBlockWorkflowButtonElementInit) -> Self
fn from(value: SlackBlockWorkflowButtonElementInit) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for SlackBlockWorkflowButtonElement
Auto Trait Implementations§
impl Freeze for SlackBlockWorkflowButtonElement
impl RefUnwindSafe for SlackBlockWorkflowButtonElement
impl Send for SlackBlockWorkflowButtonElement
impl Sync for SlackBlockWorkflowButtonElement
impl Unpin for SlackBlockWorkflowButtonElement
impl UnsafeUnpin for SlackBlockWorkflowButtonElement
impl UnwindSafe for SlackBlockWorkflowButtonElement
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