[][src]Enum rust_tdlib::types::TextEntityType

pub enum TextEntityType {
    Bold(TextEntityTypeBold),
    BotCommand(TextEntityTypeBotCommand),
    Cashtag(TextEntityTypeCashtag),
    Code(TextEntityTypeCode),
    EmailAddress(TextEntityTypeEmailAddress),
    Hashtag(TextEntityTypeHashtag),
    Italic(TextEntityTypeItalic),
    Mention(TextEntityTypeMention),
    MentionName(TextEntityTypeMentionName),
    PhoneNumber(TextEntityTypePhoneNumber),
    Pre(TextEntityTypePre),
    PreCode(TextEntityTypePreCode),
    Strikethrough(TextEntityTypeStrikethrough),
    TextUrl(TextEntityTypeTextUrl),
    Underline(TextEntityTypeUnderline),
    Url(TextEntityTypeUrl),
    // some variants omitted
}

Represents a part of the text which must be formatted differently

Variants

A bold text

A bot command, beginning with "/". This shouldn't be highlighted if there are no bots in the chat

A cashtag text, beginning with "$" and consisting of capital english letters (i.e. "$USD")

Text that must be formatted as if inside a code HTML tag

An email address

A hashtag text, beginning with "#"

An italic text

A mention of a user by their username

A text shows instead of a raw mention of the user (e.g., when the user has no username)

A phone number

Text that must be formatted as if inside a pre HTML tag

Text that must be formatted as if inside pre, and code HTML tags

A strikethrough text

A text description shown instead of a raw URL

An underlined text

An HTTP URL

Implementations

impl TextEntityType[src]

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

Trait Implementations

impl AsRef<TextEntityType> for TextEntityType[src]

impl Clone for TextEntityType[src]

impl Debug for TextEntityType[src]

impl Default for TextEntityType[src]

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

impl RObject for TextEntityType[src]

impl Serialize for TextEntityType[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>,