pub struct ActionBlock {
pub elements: Vec<BlockElement>,
pub block_id: Option<String>,
}Expand description
A block that is used to hold interactive elements.
See: https://api.slack.com/reference/block-kit/blocks#actions
Fields§
§elements: Vec<BlockElement>§block_id: Option<String>Implementations§
Source§impl ActionBlock
impl ActionBlock
pub fn builder(elements: Vec<BlockElement>) -> ActionBlockBuilder
Trait Implementations§
Source§impl Debug for ActionBlock
impl Debug for ActionBlock
Source§impl Default for ActionBlock
impl Default for ActionBlock
Source§fn default() -> ActionBlock
fn default() -> ActionBlock
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ActionBlock
impl<'de> Deserialize<'de> for ActionBlock
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 ActionBlock
impl PartialEq for ActionBlock
Source§impl Serialize for ActionBlock
impl Serialize for ActionBlock
impl StructuralPartialEq for ActionBlock
Auto Trait Implementations§
impl Freeze for ActionBlock
impl RefUnwindSafe for ActionBlock
impl Send for ActionBlock
impl Sync for ActionBlock
impl Unpin for ActionBlock
impl UnwindSafe for ActionBlock
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