pub enum RichTextObject {
Section(RichTextSection),
List(RichTextList),
Preformatted(RichTextPreformatted),
Quote(RichTextQuote),
Unknown(Value),
}Expand description
A top-level element of a rich text block. https://docs.slack.dev/reference/block-kit/blocks/rich-text-block
Variants§
Section(RichTextSection)
List(RichTextList)
Preformatted(RichTextPreformatted)
Quote(RichTextQuote)
Unknown(Value)
A kind this crate does not know. Keeps the received JSON and writes it back unchanged.
Trait Implementations§
Source§impl Clone for RichTextObject
impl Clone for RichTextObject
Source§impl Debug for RichTextObject
impl Debug for RichTextObject
Source§impl<'de> Deserialize<'de> for RichTextObject
impl<'de> Deserialize<'de> for RichTextObject
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<RichTextList> for RichTextObject
impl From<RichTextList> for RichTextObject
Source§fn from(value: RichTextList) -> Self
fn from(value: RichTextList) -> Self
Converts to this type from the input type.
Source§impl From<RichTextPreformatted> for RichTextObject
impl From<RichTextPreformatted> for RichTextObject
Source§fn from(value: RichTextPreformatted) -> Self
fn from(value: RichTextPreformatted) -> Self
Converts to this type from the input type.
Source§impl From<RichTextQuote> for RichTextObject
impl From<RichTextQuote> for RichTextObject
Source§fn from(value: RichTextQuote) -> Self
fn from(value: RichTextQuote) -> Self
Converts to this type from the input type.
Source§impl From<RichTextSection> for RichTextObject
impl From<RichTextSection> for RichTextObject
Source§fn from(value: RichTextSection) -> Self
fn from(value: RichTextSection) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RichTextObject
impl PartialEq for RichTextObject
Source§impl Serialize for RichTextObject
impl Serialize for RichTextObject
impl StructuralPartialEq for RichTextObject
Auto Trait Implementations§
impl Freeze for RichTextObject
impl RefUnwindSafe for RichTextObject
impl Send for RichTextObject
impl Sync for RichTextObject
impl Unpin for RichTextObject
impl UnsafeUnpin for RichTextObject
impl UnwindSafe for RichTextObject
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