pub enum MessageEntity {
Show 22 variants
Unknown(MessageEntityUnknown),
Mention(MessageEntityMention),
Hashtag(MessageEntityHashtag),
BotCommand(MessageEntityBotCommand),
Url(MessageEntityUrl),
Email(MessageEntityEmail),
Bold(MessageEntityBold),
Italic(MessageEntityItalic),
Code(MessageEntityCode),
Pre(MessageEntityPre),
TextUrl(MessageEntityTextUrl),
MentionName(MessageEntityMentionName),
InputMessageEntityMentionName(InputMessageEntityMentionName),
Phone(MessageEntityPhone),
Cashtag(MessageEntityCashtag),
Underline(MessageEntityUnderline),
Strike(MessageEntityStrike),
BankCard(MessageEntityBankCard),
Spoiler(MessageEntitySpoiler),
CustomEmoji(MessageEntityCustomEmoji),
Blockquote(MessageEntityBlockquote),
FormattedDate(MessageEntityFormattedDate),
}Expand description
Variants§
Unknown(MessageEntityUnknown)
Mention(MessageEntityMention)
Hashtag(MessageEntityHashtag)
BotCommand(MessageEntityBotCommand)
Url(MessageEntityUrl)
Email(MessageEntityEmail)
Bold(MessageEntityBold)
Italic(MessageEntityItalic)
Code(MessageEntityCode)
Pre(MessageEntityPre)
TextUrl(MessageEntityTextUrl)
MentionName(MessageEntityMentionName)
InputMessageEntityMentionName(InputMessageEntityMentionName)
Phone(MessageEntityPhone)
Cashtag(MessageEntityCashtag)
Underline(MessageEntityUnderline)
Strike(MessageEntityStrike)
BankCard(MessageEntityBankCard)
Spoiler(MessageEntitySpoiler)
CustomEmoji(MessageEntityCustomEmoji)
Blockquote(MessageEntityBlockquote)
FormattedDate(MessageEntityFormattedDate)
Trait Implementations§
Source§impl Clone for MessageEntity
impl Clone for MessageEntity
Source§fn clone(&self) -> MessageEntity
fn clone(&self) -> MessageEntity
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 MessageEntity
impl Debug for MessageEntity
Source§impl Deserializable for MessageEntity
impl Deserializable for MessageEntity
Source§fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
Read
Self from buf, advancing its position.Source§fn from_bytes(bytes: &[u8]) -> Result<Self>
fn from_bytes(bytes: &[u8]) -> Result<Self>
Convenience: deserialize from a byte slice.
Source§impl From<InputMessageEntityMentionName> for MessageEntity
impl From<InputMessageEntityMentionName> for MessageEntity
Source§fn from(x: InputMessageEntityMentionName) -> Self
fn from(x: InputMessageEntityMentionName) -> Self
Converts to this type from the input type.
Source§impl From<MessageEntityBankCard> for MessageEntity
impl From<MessageEntityBankCard> for MessageEntity
Source§fn from(x: MessageEntityBankCard) -> Self
fn from(x: MessageEntityBankCard) -> Self
Converts to this type from the input type.
Source§impl From<MessageEntityBlockquote> for MessageEntity
impl From<MessageEntityBlockquote> for MessageEntity
Source§fn from(x: MessageEntityBlockquote) -> Self
fn from(x: MessageEntityBlockquote) -> Self
Converts to this type from the input type.
Source§impl From<MessageEntityBold> for MessageEntity
impl From<MessageEntityBold> for MessageEntity
Source§fn from(x: MessageEntityBold) -> Self
fn from(x: MessageEntityBold) -> Self
Converts to this type from the input type.
Source§impl From<MessageEntityBotCommand> for MessageEntity
impl From<MessageEntityBotCommand> for MessageEntity
Source§fn from(x: MessageEntityBotCommand) -> Self
fn from(x: MessageEntityBotCommand) -> Self
Converts to this type from the input type.
Source§impl From<MessageEntityCashtag> for MessageEntity
impl From<MessageEntityCashtag> for MessageEntity
Source§fn from(x: MessageEntityCashtag) -> Self
fn from(x: MessageEntityCashtag) -> Self
Converts to this type from the input type.
Source§impl From<MessageEntityCode> for MessageEntity
impl From<MessageEntityCode> for MessageEntity
Source§fn from(x: MessageEntityCode) -> Self
fn from(x: MessageEntityCode) -> Self
Converts to this type from the input type.
Source§impl From<MessageEntityCustomEmoji> for MessageEntity
impl From<MessageEntityCustomEmoji> for MessageEntity
Source§fn from(x: MessageEntityCustomEmoji) -> Self
fn from(x: MessageEntityCustomEmoji) -> Self
Converts to this type from the input type.
Source§impl From<MessageEntityEmail> for MessageEntity
impl From<MessageEntityEmail> for MessageEntity
Source§fn from(x: MessageEntityEmail) -> Self
fn from(x: MessageEntityEmail) -> Self
Converts to this type from the input type.
Source§impl From<MessageEntityFormattedDate> for MessageEntity
impl From<MessageEntityFormattedDate> for MessageEntity
Source§fn from(x: MessageEntityFormattedDate) -> Self
fn from(x: MessageEntityFormattedDate) -> Self
Converts to this type from the input type.
Source§impl From<MessageEntityHashtag> for MessageEntity
impl From<MessageEntityHashtag> for MessageEntity
Source§fn from(x: MessageEntityHashtag) -> Self
fn from(x: MessageEntityHashtag) -> Self
Converts to this type from the input type.
Source§impl From<MessageEntityItalic> for MessageEntity
impl From<MessageEntityItalic> for MessageEntity
Source§fn from(x: MessageEntityItalic) -> Self
fn from(x: MessageEntityItalic) -> Self
Converts to this type from the input type.
Source§impl From<MessageEntityMention> for MessageEntity
impl From<MessageEntityMention> for MessageEntity
Source§fn from(x: MessageEntityMention) -> Self
fn from(x: MessageEntityMention) -> Self
Converts to this type from the input type.
Source§impl From<MessageEntityMentionName> for MessageEntity
impl From<MessageEntityMentionName> for MessageEntity
Source§fn from(x: MessageEntityMentionName) -> Self
fn from(x: MessageEntityMentionName) -> Self
Converts to this type from the input type.
Source§impl From<MessageEntityPhone> for MessageEntity
impl From<MessageEntityPhone> for MessageEntity
Source§fn from(x: MessageEntityPhone) -> Self
fn from(x: MessageEntityPhone) -> Self
Converts to this type from the input type.
Source§impl From<MessageEntityPre> for MessageEntity
impl From<MessageEntityPre> for MessageEntity
Source§fn from(x: MessageEntityPre) -> Self
fn from(x: MessageEntityPre) -> Self
Converts to this type from the input type.
Source§impl From<MessageEntitySpoiler> for MessageEntity
impl From<MessageEntitySpoiler> for MessageEntity
Source§fn from(x: MessageEntitySpoiler) -> Self
fn from(x: MessageEntitySpoiler) -> Self
Converts to this type from the input type.
Source§impl From<MessageEntityStrike> for MessageEntity
impl From<MessageEntityStrike> for MessageEntity
Source§fn from(x: MessageEntityStrike) -> Self
fn from(x: MessageEntityStrike) -> Self
Converts to this type from the input type.
Source§impl From<MessageEntityTextUrl> for MessageEntity
impl From<MessageEntityTextUrl> for MessageEntity
Source§fn from(x: MessageEntityTextUrl) -> Self
fn from(x: MessageEntityTextUrl) -> Self
Converts to this type from the input type.
Source§impl From<MessageEntityUnderline> for MessageEntity
impl From<MessageEntityUnderline> for MessageEntity
Source§fn from(x: MessageEntityUnderline) -> Self
fn from(x: MessageEntityUnderline) -> Self
Converts to this type from the input type.
Source§impl From<MessageEntityUnknown> for MessageEntity
impl From<MessageEntityUnknown> for MessageEntity
Source§fn from(x: MessageEntityUnknown) -> Self
fn from(x: MessageEntityUnknown) -> Self
Converts to this type from the input type.
Source§impl From<MessageEntityUrl> for MessageEntity
impl From<MessageEntityUrl> for MessageEntity
Source§fn from(x: MessageEntityUrl) -> Self
fn from(x: MessageEntityUrl) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MessageEntity
impl PartialEq for MessageEntity
Source§impl Serializable for MessageEntity
impl Serializable for MessageEntity
Source§impl TryFrom<MessageEntity> for InputMessageEntityMentionName
impl TryFrom<MessageEntity> for InputMessageEntityMentionName
Source§type Error = MessageEntity
type Error = MessageEntity
The type returned in the event of a conversion error.
Source§impl TryFrom<MessageEntity> for MessageEntityBankCard
impl TryFrom<MessageEntity> for MessageEntityBankCard
Source§type Error = MessageEntity
type Error = MessageEntity
The type returned in the event of a conversion error.
Source§impl TryFrom<MessageEntity> for MessageEntityBlockquote
impl TryFrom<MessageEntity> for MessageEntityBlockquote
Source§type Error = MessageEntity
type Error = MessageEntity
The type returned in the event of a conversion error.
Source§impl TryFrom<MessageEntity> for MessageEntityBold
impl TryFrom<MessageEntity> for MessageEntityBold
Source§type Error = MessageEntity
type Error = MessageEntity
The type returned in the event of a conversion error.
Source§impl TryFrom<MessageEntity> for MessageEntityBotCommand
impl TryFrom<MessageEntity> for MessageEntityBotCommand
Source§type Error = MessageEntity
type Error = MessageEntity
The type returned in the event of a conversion error.
Source§impl TryFrom<MessageEntity> for MessageEntityCashtag
impl TryFrom<MessageEntity> for MessageEntityCashtag
Source§type Error = MessageEntity
type Error = MessageEntity
The type returned in the event of a conversion error.
Source§impl TryFrom<MessageEntity> for MessageEntityCode
impl TryFrom<MessageEntity> for MessageEntityCode
Source§type Error = MessageEntity
type Error = MessageEntity
The type returned in the event of a conversion error.
Source§impl TryFrom<MessageEntity> for MessageEntityCustomEmoji
impl TryFrom<MessageEntity> for MessageEntityCustomEmoji
Source§type Error = MessageEntity
type Error = MessageEntity
The type returned in the event of a conversion error.
Source§impl TryFrom<MessageEntity> for MessageEntityEmail
impl TryFrom<MessageEntity> for MessageEntityEmail
Source§type Error = MessageEntity
type Error = MessageEntity
The type returned in the event of a conversion error.
Source§impl TryFrom<MessageEntity> for MessageEntityFormattedDate
impl TryFrom<MessageEntity> for MessageEntityFormattedDate
Source§type Error = MessageEntity
type Error = MessageEntity
The type returned in the event of a conversion error.
Source§impl TryFrom<MessageEntity> for MessageEntityHashtag
impl TryFrom<MessageEntity> for MessageEntityHashtag
Source§type Error = MessageEntity
type Error = MessageEntity
The type returned in the event of a conversion error.
Source§impl TryFrom<MessageEntity> for MessageEntityItalic
impl TryFrom<MessageEntity> for MessageEntityItalic
Source§type Error = MessageEntity
type Error = MessageEntity
The type returned in the event of a conversion error.
Source§impl TryFrom<MessageEntity> for MessageEntityMention
impl TryFrom<MessageEntity> for MessageEntityMention
Source§type Error = MessageEntity
type Error = MessageEntity
The type returned in the event of a conversion error.
Source§impl TryFrom<MessageEntity> for MessageEntityMentionName
impl TryFrom<MessageEntity> for MessageEntityMentionName
Source§type Error = MessageEntity
type Error = MessageEntity
The type returned in the event of a conversion error.
Source§impl TryFrom<MessageEntity> for MessageEntityPhone
impl TryFrom<MessageEntity> for MessageEntityPhone
Source§type Error = MessageEntity
type Error = MessageEntity
The type returned in the event of a conversion error.
Source§impl TryFrom<MessageEntity> for MessageEntityPre
impl TryFrom<MessageEntity> for MessageEntityPre
Source§type Error = MessageEntity
type Error = MessageEntity
The type returned in the event of a conversion error.
Source§impl TryFrom<MessageEntity> for MessageEntitySpoiler
impl TryFrom<MessageEntity> for MessageEntitySpoiler
Source§type Error = MessageEntity
type Error = MessageEntity
The type returned in the event of a conversion error.
Source§impl TryFrom<MessageEntity> for MessageEntityStrike
impl TryFrom<MessageEntity> for MessageEntityStrike
Source§type Error = MessageEntity
type Error = MessageEntity
The type returned in the event of a conversion error.
Source§impl TryFrom<MessageEntity> for MessageEntityTextUrl
impl TryFrom<MessageEntity> for MessageEntityTextUrl
Source§type Error = MessageEntity
type Error = MessageEntity
The type returned in the event of a conversion error.
Source§impl TryFrom<MessageEntity> for MessageEntityUnderline
impl TryFrom<MessageEntity> for MessageEntityUnderline
Source§type Error = MessageEntity
type Error = MessageEntity
The type returned in the event of a conversion error.
Source§impl TryFrom<MessageEntity> for MessageEntityUnknown
impl TryFrom<MessageEntity> for MessageEntityUnknown
Source§type Error = MessageEntity
type Error = MessageEntity
The type returned in the event of a conversion error.
Source§impl TryFrom<MessageEntity> for MessageEntityUrl
impl TryFrom<MessageEntity> for MessageEntityUrl
Source§type Error = MessageEntity
type Error = MessageEntity
The type returned in the event of a conversion error.
impl StructuralPartialEq for MessageEntity
Auto Trait Implementations§
impl Freeze for MessageEntity
impl RefUnwindSafe for MessageEntity
impl Send for MessageEntity
impl Sync for MessageEntity
impl Unpin for MessageEntity
impl UnsafeUnpin for MessageEntity
impl UnwindSafe for MessageEntity
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