Enum rust_tdlib::types::TextEntityType [−][src]
pub enum TextEntityType {}Show variants
BankCardNumber(TextEntityTypeBankCardNumber), Bold(TextEntityTypeBold), BotCommand(TextEntityTypeBotCommand), Cashtag(TextEntityTypeCashtag), Code(TextEntityTypeCode), EmailAddress(TextEntityTypeEmailAddress), Hashtag(TextEntityTypeHashtag), Italic(TextEntityTypeItalic), Mention(TextEntityTypeMention), MentionName(TextEntityTypeMentionName), PhoneNumber(TextEntityTypePhoneNumber), Pre(TextEntityTypePre), PreCode(TextEntityTypePreCode), Strikethrough(TextEntityTypeStrikethrough), TextUrl(TextEntityTypeTextUrl), Underline(TextEntityTypeUnderline), Url(TextEntityTypeUrl), // some variants omitted
Expand description
Represents a part of the text which must be formatted differently
Variants
BankCardNumber(TextEntityTypeBankCardNumber)
Expand description
A bank card number. The getBankCardInfo method can be used to get information about the bank card
Bold(TextEntityTypeBold)
Expand description
A bold text
BotCommand(TextEntityTypeBotCommand)
Expand description
A bot command, beginning with “/”. This shouldn’t be highlighted if there are no bots in the chat
Cashtag(TextEntityTypeCashtag)
Expand description
A cashtag text, beginning with “$” and consisting of capital english letters (i.e. “$USD”)
Code(TextEntityTypeCode)
Expand description
Text that must be formatted as if inside a code HTML tag
EmailAddress(TextEntityTypeEmailAddress)
Expand description
An email address
Hashtag(TextEntityTypeHashtag)
Expand description
A hashtag text, beginning with “#”
Italic(TextEntityTypeItalic)
Expand description
An italic text
Mention(TextEntityTypeMention)
Expand description
A mention of a user by their username
MentionName(TextEntityTypeMentionName)
Expand description
A text shows instead of a raw mention of the user (e.g., when the user has no username)
PhoneNumber(TextEntityTypePhoneNumber)
Expand description
A phone number
Pre(TextEntityTypePre)
Expand description
Text that must be formatted as if inside a pre HTML tag
PreCode(TextEntityTypePreCode)
Expand description
Text that must be formatted as if inside pre, and code HTML tags
Strikethrough(TextEntityTypeStrikethrough)
Expand description
A strikethrough text
TextUrl(TextEntityTypeTextUrl)
Expand description
A text description shown instead of a raw URL
Underline(TextEntityTypeUnderline)
Expand description
An underlined text
Url(TextEntityTypeUrl)
Expand description
An HTTP URL
Implementations
Trait Implementations
impl AsRef<TextEntityType> for TextEntityType
[src]
impl AsRef<TextEntityType> for TextEntityType
[src]fn as_ref(&self) -> &TextEntityType
[src]
fn as_ref(&self) -> &TextEntityType
[src]Performs the conversion.
impl Clone for TextEntityType
[src]
impl Clone for TextEntityType
[src]fn clone(&self) -> TextEntityType
[src]
fn clone(&self) -> TextEntityType
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for TextEntityType
[src]
impl Debug for TextEntityType
[src]impl Default for TextEntityType
[src]
impl Default for TextEntityType
[src]impl<'de> Deserialize<'de> for TextEntityType
[src]
impl<'de> Deserialize<'de> for TextEntityType
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl Serialize for TextEntityType
[src]
impl Serialize for TextEntityType
[src]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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,