Enum rtdlib::types::RichText[][src]

pub enum RichText {
Show 15 variants Anchor(RichTextAnchor), Bold(RichTextBold), EmailAddress(RichTextEmailAddress), Fixed(RichTextFixed), Icon(RichTextIcon), Italic(RichTextItalic), Marked(RichTextMarked), PhoneNumber(RichTextPhoneNumber), Plain(RichTextPlain), 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

A rich text anchor

Tuple Fields of Anchor

0: RichTextAnchor
Bold

A bold rich text

Tuple Fields of Bold

0: RichTextBold
EmailAddress

A rich text email link

Tuple Fields of EmailAddress

0: RichTextEmailAddress
Fixed

A fixed-width rich text

Tuple Fields of Fixed

0: RichTextFixed
Icon

A small image inside the text

Tuple Fields of Icon

0: RichTextIcon
Italic

An italicized rich text

Tuple Fields of Italic

0: RichTextItalic
Marked

A marked rich text

Tuple Fields of Marked

0: RichTextMarked
PhoneNumber

A rich text phone number

Tuple Fields of PhoneNumber

0: RichTextPhoneNumber
Plain

A plain text

Tuple Fields of Plain

0: RichTextPlain
Strikethrough

A strike-through rich text

Tuple Fields of Strikethrough

0: RichTextStrikethrough
Subscript

A subscript rich text

Tuple Fields of Subscript

0: RichTextSubscript
Superscript

A superscript rich text

Tuple Fields of Superscript

0: RichTextSuperscript
Underline

An underlined rich text

Tuple Fields of Underline

0: RichTextUnderline
Url

A rich text URL link

Tuple Fields of Url

0: RichTextUrl
RichTexts

A concatenation of rich texts

Tuple Fields of RichTexts

0: RichTexts

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)

recently added

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.