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

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

Describes a text object inside an instant-view web page

Variants

A rich text anchor

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

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

impl RichText[src]

pub fn from_json<S: AsRef<str>>(json: S) -> RTDResult<Self>[src]

Trait Implementations

impl AsRef<RichText> for RichText[src]

impl Clone for RichText[src]

impl Debug for RichText[src]

impl Default for RichText[src]

impl<'de> Deserialize<'de> for RichText[src]

impl RObject for RichText[src]

impl Serialize for RichText[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,