pub enum RichText {
Show 17 variants Anchor(RichTextAnchor), AnchorLink(RichTextAnchorLink), Bold(RichTextBold), EmailAddress(RichTextEmailAddress), Fixed(RichTextFixed), Icon(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

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(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

Performs the conversion.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Return td type to json string

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.