Enum tdlib::enums::TextEntityType
source · [−]pub enum TextEntityType {
Show 19 variants
Mention,
Hashtag,
Cashtag,
BotCommand,
Url,
EmailAddress,
PhoneNumber,
BankCardNumber,
Bold,
Italic,
Underline,
Strikethrough,
Spoiler,
Code,
Pre,
PreCode(TextEntityTypePreCode),
TextUrl(TextEntityTypeTextUrl),
MentionName(TextEntityTypeMentionName),
MediaTimestamp(TextEntityTypeMediaTimestamp),
}
Variants
Mention
A mention of a user by their username
Hashtag
A hashtag text, beginning with “#”
Cashtag
A cashtag text, beginning with “$” and consisting of capital English letters (e.g., “$USD”)
BotCommand
A bot command, beginning with “/”
Url
An HTTP URL
EmailAddress
An email address
PhoneNumber
A phone number
BankCardNumber
A bank card number. The getBankCardInfo method can be used to get information about the bank card
Bold
A bold text
Italic
An italic text
Underline
An underlined text
Strikethrough
A strikethrough text
Spoiler
A spoiler text. Not supported in secret chats
Code
Text that must be formatted as if inside a code HTML tag
Pre
Text that must be formatted as if inside a pre HTML tag
PreCode(TextEntityTypePreCode)
Text that must be formatted as if inside pre, and code HTML tags
TextUrl(TextEntityTypeTextUrl)
A text description shown instead of a raw URL
MentionName(TextEntityTypeMentionName)
A text shows instead of a raw mention of the user (e.g., when the user has no username)
MediaTimestamp(TextEntityTypeMediaTimestamp)
A media timestamp
Trait Implementations
sourceimpl Clone for TextEntityType
impl Clone for TextEntityType
sourcefn clone(&self) -> TextEntityType
fn clone(&self) -> TextEntityType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TextEntityType
impl Debug for TextEntityType
sourceimpl<'de> Deserialize<'de> for TextEntityType
impl<'de> Deserialize<'de> for TextEntityType
sourcefn 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
sourceimpl PartialEq<TextEntityType> for TextEntityType
impl PartialEq<TextEntityType> for TextEntityType
sourcefn eq(&self, other: &TextEntityType) -> bool
fn eq(&self, other: &TextEntityType) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &TextEntityType) -> bool
fn ne(&self, other: &TextEntityType) -> bool
This method tests for !=
.
sourceimpl Serialize for TextEntityType
impl Serialize for TextEntityType
impl StructuralPartialEq for TextEntityType
Auto Trait Implementations
impl RefUnwindSafe for TextEntityType
impl Send for TextEntityType
impl Sync for TextEntityType
impl Unpin for TextEntityType
impl UnwindSafe for TextEntityType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more