pub enum RichText {
Show 17 variants
Anchor(RichTextAnchor),
AnchorLink(RichTextAnchorLink),
Bold(RichTextBold),
EmailAddress(RichTextEmailAddress),
Fixed(RichTextFixed),
Icon(Box<RichTextIcon>),
Italic(RichTextItalic),
Marked(RichTextMarked),
PhoneNumber(RichTextPhoneNumber),
Plain(RichTextPlain),
Reference(RichTextReference),
Strikethrough(RichTextStrikethrough),
Subscript(RichTextSubscript),
Superscript(RichTextSuperscript),
Underline(RichTextUnderline),
Url(RichTextUrl),
RichTexts(RichTexts),
// some variants omitted
}
Expand description
Describes a text object inside an instant-view web page
Variants§
Anchor(RichTextAnchor)
An anchor
AnchorLink(RichTextAnchorLink)
A link to an anchor on the same web page
Bold(RichTextBold)
A bold rich text
EmailAddress(RichTextEmailAddress)
A rich text email link
Fixed(RichTextFixed)
A fixed-width rich text
Icon(Box<RichTextIcon>)
A small image inside the text
Italic(RichTextItalic)
An italicized rich text
Marked(RichTextMarked)
A marked rich text
PhoneNumber(RichTextPhoneNumber)
A rich text phone number
Plain(RichTextPlain)
A plain text
Reference(RichTextReference)
A reference to a richTexts object on the same web page
Strikethrough(RichTextStrikethrough)
A strikethrough rich text
Subscript(RichTextSubscript)
A subscript rich text
Superscript(RichTextSuperscript)
A superscript rich text
Underline(RichTextUnderline)
An underlined rich text
Url(RichTextUrl)
A rich text URL link
RichTexts(RichTexts)
A concatenation of rich texts
Implementations§
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
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