pub struct SlackButton {
pub text: SlackText,
pub value: String,
pub url: Option<String>,
pub style: Option<String>,
}Expand description
A button element for interactive Slack messages.
Fields§
§text: SlackTextThe button label text.
value: StringThe value sent when the button is clicked.
url: Option<String>Optional URL to navigate to when clicked (overrides action).
style: Option<String>Optional button style: “primary” (green) or “danger” (red).
Trait Implementations§
Source§impl Clone for SlackButton
impl Clone for SlackButton
Source§impl Debug for SlackButton
impl Debug for SlackButton
Auto Trait Implementations§
impl Freeze for SlackButton
impl RefUnwindSafe for SlackButton
impl Send for SlackButton
impl Sync for SlackButton
impl Unpin for SlackButton
impl UnsafeUnpin for SlackButton
impl UnwindSafe for SlackButton
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