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 for SlackContextBlockElement
impl PartialEq for SlackContextBlockElement
Source§impl Serialize for SlackContextBlockElement
impl Serialize for SlackContextBlockElement
impl StructuralPartialEq for SlackContextBlockElement
Auto Trait Implementations§
impl Freeze for SlackContextBlockElement
impl RefUnwindSafe for SlackContextBlockElement
impl Send for SlackContextBlockElement
impl Sync for SlackContextBlockElement
impl Unpin for SlackContextBlockElement
impl UnwindSafe for SlackContextBlockElement
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
)