pub enum SlackBlock {
Section(SlackSectionBlock),
Header(SlackHeaderBlock),
Divider(SlackDividerBlock),
Image(SlackImageBlock),
Actions(SlackActionsBlock),
Context(SlackContextBlock),
Input(SlackInputBlock),
File(SlackFileBlock),
RichText(Value),
Event(Value),
}
Variants§
Section(SlackSectionBlock)
Header(SlackHeaderBlock)
Divider(SlackDividerBlock)
Image(SlackImageBlock)
Actions(SlackActionsBlock)
Context(SlackContextBlock)
Input(SlackInputBlock)
File(SlackFileBlock)
RichText(Value)
Event(Value)
Trait Implementations§
Source§impl Clone for SlackBlock
impl Clone for SlackBlock
Source§fn clone(&self) -> SlackBlock
fn clone(&self) -> SlackBlock
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SlackBlock
impl Debug for SlackBlock
Source§impl<'de> Deserialize<'de> for SlackBlock
impl<'de> Deserialize<'de> for SlackBlock
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<SlackActionsBlock> for SlackBlock
impl From<SlackActionsBlock> for SlackBlock
Source§fn from(block: SlackActionsBlock) -> Self
fn from(block: SlackActionsBlock) -> Self
Converts to this type from the input type.
Source§impl From<SlackContextBlock> for SlackBlock
impl From<SlackContextBlock> for SlackBlock
Source§fn from(block: SlackContextBlock) -> Self
fn from(block: SlackContextBlock) -> Self
Converts to this type from the input type.
Source§impl From<SlackDividerBlock> for SlackBlock
impl From<SlackDividerBlock> for SlackBlock
Source§fn from(block: SlackDividerBlock) -> Self
fn from(block: SlackDividerBlock) -> Self
Converts to this type from the input type.
Source§impl From<SlackFileBlock> for SlackBlock
impl From<SlackFileBlock> for SlackBlock
Source§fn from(block: SlackFileBlock) -> Self
fn from(block: SlackFileBlock) -> Self
Converts to this type from the input type.
Source§impl From<SlackHeaderBlock> for SlackBlock
impl From<SlackHeaderBlock> for SlackBlock
Source§fn from(block: SlackHeaderBlock) -> Self
fn from(block: SlackHeaderBlock) -> Self
Converts to this type from the input type.
Source§impl From<SlackImageBlock> for SlackBlock
impl From<SlackImageBlock> for SlackBlock
Source§fn from(block: SlackImageBlock) -> Self
fn from(block: SlackImageBlock) -> Self
Converts to this type from the input type.
Source§impl From<SlackInputBlock> for SlackBlock
impl From<SlackInputBlock> for SlackBlock
Source§fn from(block: SlackInputBlock) -> Self
fn from(block: SlackInputBlock) -> Self
Converts to this type from the input type.
Source§impl From<SlackSectionBlock> for SlackBlock
impl From<SlackSectionBlock> for SlackBlock
Source§fn from(block: SlackSectionBlock) -> Self
fn from(block: SlackSectionBlock) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SlackBlock
impl PartialEq for SlackBlock
Source§impl Serialize for SlackBlock
impl Serialize for SlackBlock
impl StructuralPartialEq for SlackBlock
Auto Trait Implementations§
impl Freeze for SlackBlock
impl RefUnwindSafe for SlackBlock
impl Send for SlackBlock
impl Sync for SlackBlock
impl Unpin for SlackBlock
impl UnwindSafe for SlackBlock
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)