pub enum RichText {
Show 17 variants
Plain(RichTextPlain),
Bold(Box<RichTextBold>),
Italic(Box<RichTextItalic>),
Underline(Box<RichTextUnderline>),
Strikethrough(Box<RichTextStrikethrough>),
Fixed(Box<RichTextFixed>),
Url(Box<RichTextUrl>),
EmailAddress(Box<RichTextEmailAddress>),
Subscript(Box<RichTextSubscript>),
Superscript(Box<RichTextSuperscript>),
Marked(Box<RichTextMarked>),
PhoneNumber(Box<RichTextPhoneNumber>),
Icon(RichTextIcon),
Reference(Box<RichTextReference>),
Anchor(RichTextAnchor),
AnchorLink(Box<RichTextAnchorLink>),
RichTexts(RichTexts),
}
Variants§
Plain(RichTextPlain)
A plain text
Bold(Box<RichTextBold>)
A bold rich text
Italic(Box<RichTextItalic>)
An italicized rich text
Underline(Box<RichTextUnderline>)
An underlined rich text
Strikethrough(Box<RichTextStrikethrough>)
A strikethrough rich text
Fixed(Box<RichTextFixed>)
A fixed-width rich text
Url(Box<RichTextUrl>)
A rich text URL link
EmailAddress(Box<RichTextEmailAddress>)
A rich text email link
Subscript(Box<RichTextSubscript>)
A subscript rich text
Superscript(Box<RichTextSuperscript>)
A superscript rich text
Marked(Box<RichTextMarked>)
A marked rich text
PhoneNumber(Box<RichTextPhoneNumber>)
A rich text phone number
Icon(RichTextIcon)
A small image inside the text
Reference(Box<RichTextReference>)
A reference to a richTexts object on the same web page
Anchor(RichTextAnchor)
An anchor
AnchorLink(Box<RichTextAnchorLink>)
A link to an anchor on the same web page
RichTexts(RichTexts)
A concatenation of rich texts
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RichText
impl<'de> Deserialize<'de> for RichText
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for RichText
Auto Trait Implementations§
impl Freeze for RichText
impl RefUnwindSafe for RichText
impl Send for RichText
impl Sync for RichText
impl Unpin for RichText
impl UnwindSafe for RichText
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