#[non_exhaustive]pub enum MessageEntityType {
Show 20 variants
Blockquote,
Bold,
BotCommand,
Cashtag,
Code,
CustomEmoji,
DateTime,
Email,
ExpandableBlockquote,
Hashtag,
Italic,
Mention,
PhoneNumber,
Pre,
Spoiler,
Strikethrough,
TextLink,
TextMention,
Underline,
Url,
}Expand description
Available types of MessageEntity.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Blockquote
A block quotation.
Bold
Bold text.
BotCommand
A bot command (e.g. /start).
Cashtag
A cashtag (e.g. $USD).
Code
Monowidth inline code.
CustomEmoji
A custom emoji specified by its unique identifier.
DateTime
A date/time entity with optional formatting.
An email address.
ExpandableBlockquote
An expandable block quotation.
Hashtag
A hashtag (e.g. #hashtag).
Italic
Italic text.
Mention
An @username mention.
PhoneNumber
A phone number.
Pre
Monowidth code block (optionally with a language).
Spoiler
A spoiler (hidden until tapped).
Strikethrough
Strikethrough text.
TextLink
A clickable text URL.
TextMention
A mention of a user without a username.
Underline
Underlined text.
Url
A URL (e.g. https://telegram.org).
Implementations§
Trait Implementations§
Source§impl Clone for MessageEntityType
impl Clone for MessageEntityType
Source§fn clone(&self) -> MessageEntityType
fn clone(&self) -> MessageEntityType
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 MessageEntityType
impl Debug for MessageEntityType
Source§impl<'de> Deserialize<'de> for MessageEntityType
impl<'de> Deserialize<'de> for MessageEntityType
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MessageEntityType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MessageEntityType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for MessageEntityType
impl Display for MessageEntityType
Source§impl Hash for MessageEntityType
impl Hash for MessageEntityType
Source§impl PartialEq<&str> for MessageEntityType
impl PartialEq<&str> for MessageEntityType
Source§impl PartialEq<MessageEntityType> for str
impl PartialEq<MessageEntityType> for str
Source§impl PartialEq<String> for MessageEntityType
impl PartialEq<String> for MessageEntityType
Source§impl PartialEq for MessageEntityType
impl PartialEq for MessageEntityType
Source§impl Serialize for MessageEntityType
impl Serialize for MessageEntityType
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for MessageEntityType
impl Eq for MessageEntityType
impl StructuralPartialEq for MessageEntityType
Auto Trait Implementations§
impl Freeze for MessageEntityType
impl RefUnwindSafe for MessageEntityType
impl Send for MessageEntityType
impl Sync for MessageEntityType
impl Unpin for MessageEntityType
impl UnsafeUnpin for MessageEntityType
impl UnwindSafe for MessageEntityType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.