Enum rust_tdlib::types::RichText[][src]

pub enum RichText {
Show 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

An anchor

A link to an anchor on the same web page

A bold rich text

EmailAddress(RichTextEmailAddress)

A rich text email link

A fixed-width rich text

A small image inside the text

An italicized rich text

A marked rich text

PhoneNumber(RichTextPhoneNumber)

A rich text phone number

A plain text

A reference to a richTexts object on the same web page

Strikethrough(RichTextStrikethrough)

A strikethrough rich text

A subscript rich text

Superscript(RichTextSuperscript)

A superscript rich text

An underlined rich text

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

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.