pub enum RichTextElement {
Show 23 variants
AttachmentMention(AttachmentMentionElement),
Broadcast(BroadcastElement),
Canvas(CanvasElement),
CanvasUserMention(CanvasUserMentionElement),
CanvasMessageUnfurl(CanvasMessageUnfurlElement),
Channel(ChannelElement),
Citation(CitationElement),
Color(ColorElement),
Date(DateElement),
Emoji(EmojiElement),
File(FileElement),
Link(LinkElement),
ListRecord(ListRecordElement),
MessageMention(MessageMentionElement),
SalesforceDataField(SalesforceDataFieldElement),
Tag(TagElement),
Team(TeamElement),
Text(TextElement),
User(UserElement),
Usergroup(UsergroupElement),
WorkObjectMention(WorkObjectMentionElement),
WorkflowMention(WorkflowMentionElement),
Unknown(Value),
}Expand description
An inline rich text element used in sections, lists and quotes. https://docs.slack.dev/reference/block-kit/block-elements/rich-text-section-element
Variants§
AttachmentMention(AttachmentMentionElement)
Broadcast(BroadcastElement)
Canvas(CanvasElement)
CanvasUserMention(CanvasUserMentionElement)
CanvasMessageUnfurl(CanvasMessageUnfurlElement)
Channel(ChannelElement)
Citation(CitationElement)
Color(ColorElement)
Date(DateElement)
Emoji(EmojiElement)
File(FileElement)
Link(LinkElement)
ListRecord(ListRecordElement)
MessageMention(MessageMentionElement)
SalesforceDataField(SalesforceDataFieldElement)
Tag(TagElement)
Team(TeamElement)
Text(TextElement)
User(UserElement)
Usergroup(UsergroupElement)
WorkObjectMention(WorkObjectMentionElement)
WorkflowMention(WorkflowMentionElement)
Unknown(Value)
A kind this crate does not know. Keeps the received JSON and writes it back unchanged.
Trait Implementations§
Source§impl Clone for RichTextElement
impl Clone for RichTextElement
Source§impl Debug for RichTextElement
impl Debug for RichTextElement
Source§impl<'de> Deserialize<'de> for RichTextElement
impl<'de> Deserialize<'de> for RichTextElement
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<AttachmentMentionElement> for RichTextElement
impl From<AttachmentMentionElement> for RichTextElement
Source§fn from(value: AttachmentMentionElement) -> Self
fn from(value: AttachmentMentionElement) -> Self
Converts to this type from the input type.
Source§impl From<BroadcastElement> for RichTextElement
impl From<BroadcastElement> for RichTextElement
Source§fn from(value: BroadcastElement) -> Self
fn from(value: BroadcastElement) -> Self
Converts to this type from the input type.
Source§impl From<CanvasElement> for RichTextElement
impl From<CanvasElement> for RichTextElement
Source§fn from(value: CanvasElement) -> Self
fn from(value: CanvasElement) -> Self
Converts to this type from the input type.
Source§impl From<CanvasMessageUnfurlElement> for RichTextElement
impl From<CanvasMessageUnfurlElement> for RichTextElement
Source§fn from(value: CanvasMessageUnfurlElement) -> Self
fn from(value: CanvasMessageUnfurlElement) -> Self
Converts to this type from the input type.
Source§impl From<CanvasUserMentionElement> for RichTextElement
impl From<CanvasUserMentionElement> for RichTextElement
Source§fn from(value: CanvasUserMentionElement) -> Self
fn from(value: CanvasUserMentionElement) -> Self
Converts to this type from the input type.
Source§impl From<ChannelElement> for RichTextElement
impl From<ChannelElement> for RichTextElement
Source§fn from(value: ChannelElement) -> Self
fn from(value: ChannelElement) -> Self
Converts to this type from the input type.
Source§impl From<CitationElement> for RichTextElement
impl From<CitationElement> for RichTextElement
Source§fn from(value: CitationElement) -> Self
fn from(value: CitationElement) -> Self
Converts to this type from the input type.
Source§impl From<ColorElement> for RichTextElement
impl From<ColorElement> for RichTextElement
Source§fn from(value: ColorElement) -> Self
fn from(value: ColorElement) -> Self
Converts to this type from the input type.
Source§impl From<DateElement> for RichTextElement
impl From<DateElement> for RichTextElement
Source§fn from(value: DateElement) -> Self
fn from(value: DateElement) -> Self
Converts to this type from the input type.
Source§impl From<EmojiElement> for RichTextElement
impl From<EmojiElement> for RichTextElement
Source§fn from(value: EmojiElement) -> Self
fn from(value: EmojiElement) -> Self
Converts to this type from the input type.
Source§impl From<FileElement> for RichTextElement
impl From<FileElement> for RichTextElement
Source§fn from(value: FileElement) -> Self
fn from(value: FileElement) -> Self
Converts to this type from the input type.
Source§impl From<LinkElement> for RichTextElement
impl From<LinkElement> for RichTextElement
Source§fn from(value: LinkElement) -> Self
fn from(value: LinkElement) -> Self
Converts to this type from the input type.
Source§impl From<ListRecordElement> for RichTextElement
impl From<ListRecordElement> for RichTextElement
Source§fn from(value: ListRecordElement) -> Self
fn from(value: ListRecordElement) -> Self
Converts to this type from the input type.
Source§impl From<MessageMentionElement> for RichTextElement
impl From<MessageMentionElement> for RichTextElement
Source§fn from(value: MessageMentionElement) -> Self
fn from(value: MessageMentionElement) -> Self
Converts to this type from the input type.
Source§impl From<SalesforceDataFieldElement> for RichTextElement
impl From<SalesforceDataFieldElement> for RichTextElement
Source§fn from(value: SalesforceDataFieldElement) -> Self
fn from(value: SalesforceDataFieldElement) -> Self
Converts to this type from the input type.
Source§impl From<TagElement> for RichTextElement
impl From<TagElement> for RichTextElement
Source§fn from(value: TagElement) -> Self
fn from(value: TagElement) -> Self
Converts to this type from the input type.
Source§impl From<TeamElement> for RichTextElement
impl From<TeamElement> for RichTextElement
Source§fn from(value: TeamElement) -> Self
fn from(value: TeamElement) -> Self
Converts to this type from the input type.
Source§impl From<TextElement> for RichTextElement
impl From<TextElement> for RichTextElement
Source§fn from(value: TextElement) -> Self
fn from(value: TextElement) -> Self
Converts to this type from the input type.
Source§impl From<UserElement> for RichTextElement
impl From<UserElement> for RichTextElement
Source§fn from(value: UserElement) -> Self
fn from(value: UserElement) -> Self
Converts to this type from the input type.
Source§impl From<UsergroupElement> for RichTextElement
impl From<UsergroupElement> for RichTextElement
Source§fn from(value: UsergroupElement) -> Self
fn from(value: UsergroupElement) -> Self
Converts to this type from the input type.
Source§impl From<WorkObjectMentionElement> for RichTextElement
impl From<WorkObjectMentionElement> for RichTextElement
Source§fn from(value: WorkObjectMentionElement) -> Self
fn from(value: WorkObjectMentionElement) -> Self
Converts to this type from the input type.
Source§impl From<WorkflowMentionElement> for RichTextElement
impl From<WorkflowMentionElement> for RichTextElement
Source§fn from(value: WorkflowMentionElement) -> Self
fn from(value: WorkflowMentionElement) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RichTextElement
impl PartialEq for RichTextElement
Source§impl Serialize for RichTextElement
impl Serialize for RichTextElement
impl StructuralPartialEq for RichTextElement
Auto Trait Implementations§
impl Freeze for RichTextElement
impl RefUnwindSafe for RichTextElement
impl Send for RichTextElement
impl Sync for RichTextElement
impl Unpin for RichTextElement
impl UnsafeUnpin for RichTextElement
impl UnwindSafe for RichTextElement
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