pub enum ContextElement {
Image(ImageElement),
PlainText(PlainText),
Mrkdwn(Mrkdwn),
Unknown(Value),
}Expand description
An element allowed in a context block (images and text). https://docs.slack.dev/reference/block-kit/blocks/context-block
Variants§
Image(ImageElement)
PlainText(PlainText)
Mrkdwn(Mrkdwn)
Unknown(Value)
A kind this crate does not know. Keeps the received JSON and writes it back unchanged.
Trait Implementations§
Source§impl Clone for ContextElement
impl Clone for ContextElement
Source§impl Debug for ContextElement
impl Debug for ContextElement
Source§impl<'de> Deserialize<'de> for ContextElement
impl<'de> Deserialize<'de> for ContextElement
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ImageElement> for ContextElement
impl From<ImageElement> for ContextElement
Source§fn from(value: ImageElement) -> Self
fn from(value: ImageElement) -> Self
Converts to this type from the input type.
Source§impl From<Mrkdwn> for ContextElement
impl From<Mrkdwn> for ContextElement
Source§impl From<PlainText> for ContextElement
impl From<PlainText> for ContextElement
Source§impl PartialEq for ContextElement
impl PartialEq for ContextElement
Source§impl Serialize for ContextElement
impl Serialize for ContextElement
impl StructuralPartialEq for ContextElement
Auto Trait Implementations§
impl Freeze for ContextElement
impl RefUnwindSafe for ContextElement
impl Send for ContextElement
impl Sync for ContextElement
impl Unpin for ContextElement
impl UnsafeUnpin for ContextElement
impl UnwindSafe for ContextElement
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