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
Expandable block quotation.
Code
Inline code.
Pre
Pre-formatted code block.
TextLink
Clickable text link.
TextMention
Mention of a user without a username.
CustomEmoji
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