pub enum SlackContextBlockElement {
Image(SlackBlockImageElement),
Plain(SlackBlockPlainText),
MarkDown(SlackBlockMarkDownText),
}Variants§
Trait Implementations§
source§impl Clone for SlackContextBlockElement
impl Clone for SlackContextBlockElement
source§fn clone(&self) -> SlackContextBlockElement
fn clone(&self) -> SlackContextBlockElement
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 SlackContextBlockElement
impl Debug for SlackContextBlockElement
source§impl<'de> Deserialize<'de> for SlackContextBlockElement
impl<'de> Deserialize<'de> for SlackContextBlockElement
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<SlackBlockImageElement> for SlackContextBlockElement
impl From<SlackBlockImageElement> for SlackContextBlockElement
source§fn from(element: SlackBlockImageElement) -> Self
fn from(element: SlackBlockImageElement) -> Self
Converts to this type from the input type.
source§impl From<SlackBlockMarkDownText> for SlackContextBlockElement
impl From<SlackBlockMarkDownText> for SlackContextBlockElement
source§fn from(text: SlackBlockMarkDownText) -> Self
fn from(text: SlackBlockMarkDownText) -> Self
Converts to this type from the input type.
source§impl From<SlackBlockPlainText> for SlackContextBlockElement
impl From<SlackBlockPlainText> for SlackContextBlockElement
source§fn from(text: SlackBlockPlainText) -> Self
fn from(text: SlackBlockPlainText) -> Self
Converts to this type from the input type.
source§impl PartialEq<SlackContextBlockElement> for SlackContextBlockElement
impl PartialEq<SlackContextBlockElement> for SlackContextBlockElement
source§fn eq(&self, other: &SlackContextBlockElement) -> bool
fn eq(&self, other: &SlackContextBlockElement) -> bool
This method tests for
self and other values to be equal, and is used
by ==.