[][src]Enum grammers_tl_types::enums::RichText

pub enum RichText {
    TextEmpty(TextEmpty),
    TextPlain(TextPlain),
    TextBold(Box<TextBold>),
    TextItalic(Box<TextItalic>),
    TextUnderline(Box<TextUnderline>),
    TextStrike(Box<TextStrike>),
    TextFixed(Box<TextFixed>),
    TextUrl(Box<TextUrl>),
    TextEmail(Box<TextEmail>),
    TextConcat(TextConcat),
    TextSubscript(Box<TextSubscript>),
    TextSuperscript(Box<TextSuperscript>),
    TextMarked(Box<TextMarked>),
    TextPhone(Box<TextPhone>),
    TextImage(TextImage),
    TextAnchor(Box<TextAnchor>),
}

Variants

TextEmpty(TextEmpty)
TextPlain(TextPlain)
TextBold(Box<TextBold>)
TextItalic(Box<TextItalic>)
TextUnderline(Box<TextUnderline>)
TextStrike(Box<TextStrike>)
TextFixed(Box<TextFixed>)
TextUrl(Box<TextUrl>)
TextEmail(Box<TextEmail>)
TextConcat(TextConcat)
TextSubscript(Box<TextSubscript>)
TextSuperscript(Box<TextSuperscript>)
TextMarked(Box<TextMarked>)
TextPhone(Box<TextPhone>)
TextImage(TextImage)
TextAnchor(Box<TextAnchor>)

Trait Implementations

impl Clone for RichText[src]

impl Debug for RichText[src]

impl Deserializable for RichText[src]

impl From<TextAnchor> for RichText[src]

impl From<TextBold> for RichText[src]

impl From<TextConcat> for RichText[src]

impl From<TextEmail> for RichText[src]

impl From<TextEmpty> for RichText[src]

impl From<TextFixed> for RichText[src]

impl From<TextImage> for RichText[src]

impl From<TextItalic> for RichText[src]

impl From<TextMarked> for RichText[src]

impl From<TextPhone> for RichText[src]

impl From<TextPlain> for RichText[src]

impl From<TextStrike> for RichText[src]

impl From<TextSubscript> for RichText[src]

impl From<TextSuperscript> for RichText[src]

impl From<TextUnderline> for RichText[src]

impl From<TextUrl> for RichText[src]

impl PartialEq<RichText> for RichText[src]

impl Serializable for RichText[src]

impl StructuralPartialEq for RichText[src]

impl TryFrom<RichText> for TextAnchor[src]

type Error = WrongVariant

The type returned in the event of a conversion error.

impl TryFrom<RichText> for TextBold[src]

type Error = WrongVariant

The type returned in the event of a conversion error.

impl TryFrom<RichText> for TextPlain[src]

type Error = WrongVariant

The type returned in the event of a conversion error.

impl TryFrom<RichText> for TextStrike[src]

type Error = WrongVariant

The type returned in the event of a conversion error.

impl TryFrom<RichText> for TextSubscript[src]

type Error = WrongVariant

The type returned in the event of a conversion error.

impl TryFrom<RichText> for TextSuperscript[src]

type Error = WrongVariant

The type returned in the event of a conversion error.

impl TryFrom<RichText> for TextUnderline[src]

type Error = WrongVariant

The type returned in the event of a conversion error.

impl TryFrom<RichText> for TextUrl[src]

type Error = WrongVariant

The type returned in the event of a conversion error.

impl TryFrom<RichText> for TextConcat[src]

type Error = WrongVariant

The type returned in the event of a conversion error.

impl TryFrom<RichText> for TextEmail[src]

type Error = WrongVariant

The type returned in the event of a conversion error.

impl TryFrom<RichText> for TextEmpty[src]

type Error = WrongVariant

The type returned in the event of a conversion error.

impl TryFrom<RichText> for TextFixed[src]

type Error = WrongVariant

The type returned in the event of a conversion error.

impl TryFrom<RichText> for TextImage[src]

type Error = WrongVariant

The type returned in the event of a conversion error.

impl TryFrom<RichText> for TextItalic[src]

type Error = WrongVariant

The type returned in the event of a conversion error.

impl TryFrom<RichText> for TextMarked[src]

type Error = WrongVariant

The type returned in the event of a conversion error.

impl TryFrom<RichText> for TextPhone[src]

type Error = WrongVariant

The type returned in the event of a conversion error.

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