pub enum MessageEntityKind {
}Expand description
This object represents the kind of message entity, and its metadata.
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
underline
Strikethrough
strikethrough text
Spoiler
spoiler message that can be revealed with click
Code
monowidth string
Pre
Fields
language: StringFor “pre” only, the programming language of the entity text
monowidth blockTextLink
Fields
url: StringFor “text_link” only, URL that will be opened after user taps on the text
for clickable text URLs
TextMention
Fields
user: UserFor “text_mention” only, the mentioned user
for users without usernames
CustomEmoji
Fields
custom_emoji_id: StringFor “custom_emoji” only, unique identifier of the custom emoji. Use getCustomEmojiStickers to get full information about the sticker
for inline custom emoji stickers
Trait Implementations
sourceimpl Debug for MessageEntityKind
impl Debug for MessageEntityKind
sourceimpl<'de> Deserialize<'de> for MessageEntityKind
impl<'de> Deserialize<'de> for MessageEntityKind
sourcefn 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
sourceimpl Serialize for MessageEntityKind
impl Serialize for MessageEntityKind
Auto Trait Implementations
impl RefUnwindSafe for MessageEntityKind
impl Send for MessageEntityKind
impl Sync for MessageEntityKind
impl Unpin for MessageEntityKind
impl UnwindSafe for MessageEntityKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more