pub enum PreformattedElement {
Text(TextElement),
Link(LinkElement),
Unknown(Value),
}Expand description
An element allowed in a preformatted block (text and links). https://docs.slack.dev/reference/block-kit/block-elements/rich-text-preformatted-element
Variants§
Text(TextElement)
Link(LinkElement)
Unknown(Value)
A kind this crate does not know. Keeps the received JSON and writes it back unchanged.
Trait Implementations§
Source§impl Clone for PreformattedElement
impl Clone for PreformattedElement
Source§impl Debug for PreformattedElement
impl Debug for PreformattedElement
Source§impl<'de> Deserialize<'de> for PreformattedElement
impl<'de> Deserialize<'de> for PreformattedElement
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<LinkElement> for PreformattedElement
impl From<LinkElement> for PreformattedElement
Source§fn from(value: LinkElement) -> Self
fn from(value: LinkElement) -> Self
Converts to this type from the input type.
Source§impl From<TextElement> for PreformattedElement
impl From<TextElement> for PreformattedElement
Source§fn from(value: TextElement) -> Self
fn from(value: TextElement) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PreformattedElement
impl PartialEq for PreformattedElement
Source§impl Serialize for PreformattedElement
impl Serialize for PreformattedElement
impl StructuralPartialEq for PreformattedElement
Auto Trait Implementations§
impl Freeze for PreformattedElement
impl RefUnwindSafe for PreformattedElement
impl Send for PreformattedElement
impl Sync for PreformattedElement
impl Unpin for PreformattedElement
impl UnsafeUnpin for PreformattedElement
impl UnwindSafe for PreformattedElement
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