pub enum MessageEntityKind {
Show 20 variants
Mention,
Hashtag,
Cashtag,
BotCommand,
Url,
Email,
PhoneNumber,
Bold,
Italic,
Underline,
Strikethrough,
Spoiler,
Blockquote,
ExpandableBlockquote,
Code,
Pre,
TextLink,
TextMention,
CustomEmoji,
DateTime,
}Expand description
Type of a message entity.
Variants§
Mention
@username mention.
Hashtag
#hashtag.
Cashtag
$cashtag.
BotCommand
/bot_command.
Url
Plain URL.
Email address.
PhoneNumber
Phone number.
Bold
Bold text.
Italic
Italic text.
Underline
Underlined text.
Strikethrough
Strikethrough text.
Spoiler
||Spoiler|| text.
Blockquote
Block quotation.
ExpandableBlockquote
An “expandable” block quotation that can be expanded to show the full text.
Code
Monospaced text.
Pre
Monospaced block.
TextLink
A text link. The url field will contain the destination URL.
TextMention
A text mention of a user. The user field will contain the mentioned user.
CustomEmoji
Custom emoji. The custom_emoji_id field will contain the identifier of the custom emoji.
DateTime
Date/time entity.
Trait Implementations§
Source§impl Clone for MessageEntityKind
impl Clone for MessageEntityKind
Source§fn clone(&self) -> MessageEntityKind
fn clone(&self) -> MessageEntityKind
Returns a duplicate 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 MessageEntityKind
impl Debug for MessageEntityKind
Source§impl<'de> Deserialize<'de> for MessageEntityKind
impl<'de> Deserialize<'de> for MessageEntityKind
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 for MessageEntityKind
impl PartialEq for MessageEntityKind
Source§impl Serialize for MessageEntityKind
impl Serialize for MessageEntityKind
impl Eq for MessageEntityKind
impl StructuralPartialEq for MessageEntityKind
Auto Trait Implementations§
impl Freeze for MessageEntityKind
impl RefUnwindSafe for MessageEntityKind
impl Send for MessageEntityKind
impl Sync for MessageEntityKind
impl Unpin for MessageEntityKind
impl UnsafeUnpin for MessageEntityKind
impl UnwindSafe for MessageEntityKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more