pub struct ButtonElement {
pub text: TextBlockObject,
pub action_id: String,
pub url: Option<String>,
pub value: Option<String>,
pub style: Option<String>,
pub confirm: Option<ConfirmationBlockObject>,
}Expand description
An interactive component that inserts a button.
See: https://api.slack.com/reference/block-kit/block-elements#button
Fields§
§text: TextBlockObject§action_id: String§url: Option<String>§value: Option<String>§style: Option<String>§confirm: Option<ConfirmationBlockObject>Implementations§
Source§impl ButtonElement
impl ButtonElement
pub fn builder(text: TextBlockObject, action_id: String) -> ButtonElementBuilder
Trait Implementations§
Source§impl Debug for ButtonElement
impl Debug for ButtonElement
Source§impl Default for ButtonElement
impl Default for ButtonElement
Source§fn default() -> ButtonElement
fn default() -> ButtonElement
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ButtonElement
impl<'de> Deserialize<'de> for ButtonElement
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 PartialEq for ButtonElement
impl PartialEq for ButtonElement
Source§impl Serialize for ButtonElement
impl Serialize for ButtonElement
impl StructuralPartialEq for ButtonElement
Auto Trait Implementations§
impl Freeze for ButtonElement
impl RefUnwindSafe for ButtonElement
impl Send for ButtonElement
impl Sync for ButtonElement
impl Unpin for ButtonElement
impl UnwindSafe for ButtonElement
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