Enum grammers_tl_types::enums::MessageEntity
source · pub enum MessageEntity {
Show 21 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),
}
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)
Implementations§
Trait Implementations§
source§impl Clone for MessageEntity
impl Clone for MessageEntity
source§fn clone(&self) -> MessageEntity
fn clone(&self) -> MessageEntity
Returns a copy 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§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<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§fn eq(&self, other: &MessageEntity) -> bool
fn eq(&self, other: &MessageEntity) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serializable for MessageEntity
impl Serializable for MessageEntity
source§impl TryFrom<MessageEntity> for MessageEntityBankCard
impl TryFrom<MessageEntity> for MessageEntityBankCard
source§impl TryFrom<MessageEntity> for MessageEntityBold
impl TryFrom<MessageEntity> for MessageEntityBold
source§impl TryFrom<MessageEntity> for MessageEntityCashtag
impl TryFrom<MessageEntity> for MessageEntityCashtag
source§impl TryFrom<MessageEntity> for MessageEntityCode
impl TryFrom<MessageEntity> for MessageEntityCode
source§impl TryFrom<MessageEntity> for MessageEntityEmail
impl TryFrom<MessageEntity> for MessageEntityEmail
source§impl TryFrom<MessageEntity> for MessageEntityHashtag
impl TryFrom<MessageEntity> for MessageEntityHashtag
source§impl TryFrom<MessageEntity> for MessageEntityItalic
impl TryFrom<MessageEntity> for MessageEntityItalic
source§impl TryFrom<MessageEntity> for MessageEntityMention
impl TryFrom<MessageEntity> for MessageEntityMention
source§impl TryFrom<MessageEntity> for MessageEntityPhone
impl TryFrom<MessageEntity> for MessageEntityPhone
source§impl TryFrom<MessageEntity> for MessageEntityPre
impl TryFrom<MessageEntity> for MessageEntityPre
source§impl TryFrom<MessageEntity> for MessageEntitySpoiler
impl TryFrom<MessageEntity> for MessageEntitySpoiler
source§impl TryFrom<MessageEntity> for MessageEntityStrike
impl TryFrom<MessageEntity> for MessageEntityStrike
source§impl TryFrom<MessageEntity> for MessageEntityTextUrl
impl TryFrom<MessageEntity> for MessageEntityTextUrl
source§impl TryFrom<MessageEntity> for MessageEntityUnknown
impl TryFrom<MessageEntity> for MessageEntityUnknown
source§impl TryFrom<MessageEntity> for MessageEntityUrl
impl TryFrom<MessageEntity> for MessageEntityUrl
impl StructuralPartialEq for MessageEntity
Auto Trait Implementations§
impl RefUnwindSafe for MessageEntity
impl Send for MessageEntity
impl Sync for MessageEntity
impl Unpin 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