pub enum TextObject {
PlainText(PlainText),
Mrkdwn(Mrkdwn),
Unknown(Value),
}Expand description
A text object (plain_text or mrkdwn). https://docs.slack.dev/reference/block-kit/composition-objects/text-object
Variants§
PlainText(PlainText)
Mrkdwn(Mrkdwn)
Unknown(Value)
A kind this crate does not know. Keeps the received JSON and writes it back unchanged.
Implementations§
Trait Implementations§
Source§impl Clone for TextObject
impl Clone for TextObject
Source§impl Debug for TextObject
impl Debug for TextObject
Source§impl<'de> Deserialize<'de> for TextObject
impl<'de> Deserialize<'de> for TextObject
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<Mrkdwn> for TextObject
impl From<Mrkdwn> for TextObject
Source§impl From<PlainText> for TextObject
impl From<PlainText> for TextObject
Source§impl PartialEq for TextObject
impl PartialEq for TextObject
Source§impl Serialize for TextObject
impl Serialize for TextObject
impl StructuralPartialEq for TextObject
Auto Trait Implementations§
impl Freeze for TextObject
impl RefUnwindSafe for TextObject
impl Send for TextObject
impl Sync for TextObject
impl Unpin for TextObject
impl UnsafeUnpin for TextObject
impl UnwindSafe for TextObject
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