pub struct ContextBlock {
pub elements: Vec<MixedElement>,
pub block_id: Option<String>,
}Expand description
Displays message context, which can include both images and text.
See: https://api.slack.com/reference/block-kit/blocks#context
Fields§
§elements: Vec<MixedElement>§block_id: Option<String>Implementations§
Source§impl ContextBlock
impl ContextBlock
pub fn builder(elements: Vec<MixedElement>) -> ContextBlockBuilder
Trait Implementations§
Source§impl Debug for ContextBlock
impl Debug for ContextBlock
Source§impl Default for ContextBlock
impl Default for ContextBlock
Source§fn default() -> ContextBlock
fn default() -> ContextBlock
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ContextBlock
impl<'de> Deserialize<'de> for ContextBlock
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 ContextBlock
impl PartialEq for ContextBlock
Source§impl Serialize for ContextBlock
impl Serialize for ContextBlock
impl StructuralPartialEq for ContextBlock
Auto Trait Implementations§
impl Freeze for ContextBlock
impl RefUnwindSafe for ContextBlock
impl Send for ContextBlock
impl Sync for ContextBlock
impl Unpin for ContextBlock
impl UnwindSafe for ContextBlock
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