[][src]Enum telexide::model::MessageEntity

pub enum MessageEntity {
    Mention(TextBlock),
    HashTag(TextBlock),
    CashTag(TextBlock),
    BotCommand(TextBlock),
    Url(TextBlock),
    Email(TextBlock),
    PhoneNumber(TextBlock),
    Bold(TextBlock),
    Italic(TextBlock),
    Underline(TextBlock),
    StrikeThrough(TextBlock),
    Code(TextBlock),
    Pre(Pre),
    TextLink(TextLink),
    TextMention(TextMention),
}

This object represents one special entity in a text message. For example, hashtags, usernames, URLs, etc.

Variants

Mention(TextBlock)

A mention (@username)

HashTag(TextBlock)

A hashtag (#hashtag)

CashTag(TextBlock)

A cashtag ($USD)

BotCommand(TextBlock)

A bot command (/start@bot_name)

An url (https://telegram.org)

Email(TextBlock)

An email address (do-not-reply@telegram.org)

PhoneNumber(TextBlock)

A phone number (+1-212-555-0123)

Bold(TextBlock)

Bold text

Italic(TextBlock)

Italic text

Underline(TextBlock)

Underlined text

StrikeThrough(TextBlock)

strikethrough text

Code(TextBlock)

A monowidth code string

Pre(Pre)

a monowidth code block

A clickable text URL

TextMention(TextMention)

A mention of users without usernames

Trait Implementations

impl Clone for MessageEntity[src]

impl Debug for MessageEntity[src]

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

impl PartialEq<MessageEntity> for MessageEntity[src]

impl Serialize for MessageEntity[src]

impl StructuralPartialEq for MessageEntity[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> CloneAny for T where
    T: Clone + Any
[src]

impl<T> DebugAny for T where
    T: Any + Debug
[src]

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

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

impl<T> Instrument for T[src]

impl<T> Instrument 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<T> UnsafeAny for T where
    T: Any