Enum telexide_fork::model::MessageEntity [−][src]
pub enum MessageEntity {
Show 15 variants
Mention(TextBlock),
HashTag(TextBlock),
CashTag(TextBlock),
BotCommand(TextBlock),
Url(TextBlock),
Email(TextBlock),
PhoneNumber(TextBlock),
Bold(TextBlock),
Italic(TextBlock),
Underline(TextBlock),
StrikeThrough(TextBlock),
Code(TextBlock),
Pre(Pre),
TextLink(TextLink),
TextMention(TextMention),
}Expand description
This object represents one special entity in a text message. For example, hashtags, usernames, URLs, etc.
Variants
Mention(TextBlock)
Tuple Fields
0: TextBlockA mention (@username)
HashTag(TextBlock)
Tuple Fields
0: TextBlockA hashtag (#hashtag)
CashTag(TextBlock)
Tuple Fields
0: TextBlockA cashtag ($USD)
BotCommand(TextBlock)
Tuple Fields
0: TextBlockA bot command (/start@bot_name)
Url(TextBlock)
Tuple Fields
0: TextBlockAn url (https://telegram.org)
Email(TextBlock)
Tuple Fields
0: TextBlockAn email address (do-not-reply@telegram.org)
PhoneNumber(TextBlock)
Tuple Fields
0: TextBlockA phone number (+1-212-555-0123)
Bold(TextBlock)
Tuple Fields
0: TextBlockBold text
Italic(TextBlock)
Tuple Fields
0: TextBlockItalic text
Underline(TextBlock)
Tuple Fields
0: TextBlockUnderlined text
StrikeThrough(TextBlock)
Tuple Fields
0: TextBlockstrikethrough text
Code(TextBlock)
Tuple Fields
0: TextBlockA monowidth code string
Pre(Pre)
Tuple Fields
0: Prea monowidth code block
TextLink(TextLink)
Tuple Fields
0: TextLinkA clickable text URL
TextMention(TextMention)
Tuple Fields
0: TextMentionA mention of users without usernames
Trait Implementations
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
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
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
Mutably borrows from an owned value. Read more
Wrap the input message T in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more