Enum telbot_types::markup::MessageEntityKind[][src]

pub enum MessageEntityKind {
Show 15 variants Mention, Hashtag, Cashtag, BotCommand, Url, Email, PhoneNumber, Bold, Italic, Underline, Strikethrough, Code, Pre { langauge: String, }, TextLink { url: String, }, TextMention { user: User, },
}
Expand description

Type of the message entity

Variants

Mention

@username

Hashtag

#hashtag

Cashtag

$USD

BotCommand

/start@jobs_bot

Url

https://telegram.org

Email

do-not-reply@telegram.org

PhoneNumber

+1-212-555-0123

Bold

bold text

Italic

italic text

Underline

underlined text

Strikethrough

~strikethrough text~

Code

monowidth string

Pre

monowidth block

Fields of Pre

langauge: String

The programming language of the entity text

clickable text URLs

Fields of TextLink

url: String

Url that will be opened after user taps on the text

TextMention

mention for users without usernames

Fields of TextMention

user: User

The mentioned user

Trait Implementations

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