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

A bank card number. The getBankCardInfo method can be used to get information about the bank card

A bold text

A bot command, beginning with “/”. This shouldn’t be highlighted if there are no bots in the chat

A cashtag text, beginning with “$” and consisting of capital english letters (i.e. “$USD”)

Text that must be formatted as if inside a code HTML tag

An email address

A hashtag text, beginning with “#”

An italic text

A mention of a user by their username

A text shows instead of a raw mention of the user (e.g., when the user has no username)

A phone number

Text that must be formatted as if inside a pre HTML tag

Text that must be formatted as if inside pre, and code HTML tags

A strikethrough text

A text description shown instead of a raw URL

An underlined text

An HTTP URL

Implementations

Trait Implementations

Performs the conversion.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.