Enum telexide_fork::model::MessageEntity
source · pub enum MessageEntity {
Show 16 variants
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),
CustomEmoji(InlineCustomEmoji),
}Expand description
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)
Url(TextBlock)
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
TextLink(TextLink)
A clickable text URL
TextMention(TextMention)
A mention of users without usernames
CustomEmoji(InlineCustomEmoji)
Inline custom emoji stickers
Trait Implementations§
source§impl Clone for MessageEntity
impl Clone for MessageEntity
source§fn clone(&self) -> MessageEntity
fn clone(&self) -> MessageEntity
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for MessageEntity
impl Debug for MessageEntity
source§impl<'de> Deserialize<'de> for MessageEntity
impl<'de> Deserialize<'de> for MessageEntity
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<MessageEntity> for MessageEntity
impl PartialEq<MessageEntity> for MessageEntity
source§fn eq(&self, other: &MessageEntity) -> bool
fn eq(&self, other: &MessageEntity) -> bool
This method tests for
self and other values to be equal, and is used
by ==.