Enum slack_morphism::prelude::SlackBlock
source · pub enum SlackBlock {
Section(SlackSectionBlock),
Header(SlackHeaderBlock),
Divider(SlackDividerBlock),
Image(SlackImageBlock),
Actions(SlackActionsBlock),
Context(SlackContextBlock),
Input(SlackInputBlock),
File(SlackFileBlock),
RichText(Value),
}Variants§
Section(SlackSectionBlock)
Header(SlackHeaderBlock)
Divider(SlackDividerBlock)
Image(SlackImageBlock)
Actions(SlackActionsBlock)
Context(SlackContextBlock)
Input(SlackInputBlock)
File(SlackFileBlock)
RichText(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<SlackBlock> for SlackBlock
impl PartialEq<SlackBlock> for SlackBlock
source§fn eq(&self, other: &SlackBlock) -> bool
fn eq(&self, other: &SlackBlock) -> bool
This method tests for
self and other values to be equal, and is used
by ==.