[−][src]Enum rust_tdlib::types::TextEntityType
Represents a part of the text which must be formatted differently
Variants
Bold(TextEntityTypeBold)
A bold text
BotCommand(TextEntityTypeBotCommand)
A bot command, beginning with "/". This shouldn't be highlighted if there are no bots in the chat
Cashtag(TextEntityTypeCashtag)
A cashtag text, beginning with "$" and consisting of capital english letters (i.e. "$USD")
Code(TextEntityTypeCode)
Text that must be formatted as if inside a code HTML tag
EmailAddress(TextEntityTypeEmailAddress)
An email address
Hashtag(TextEntityTypeHashtag)
A hashtag text, beginning with "#"
Italic(TextEntityTypeItalic)
An italic text
Mention(TextEntityTypeMention)
A mention of a user by their username
MentionName(TextEntityTypeMentionName)
A text shows instead of a raw mention of the user (e.g., when the user has no username)
PhoneNumber(TextEntityTypePhoneNumber)
A phone number
Pre(TextEntityTypePre)
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
Strikethrough(TextEntityTypeStrikethrough)
A strikethrough text
TextUrl(TextEntityTypeTextUrl)
A text description shown instead of a raw URL
Underline(TextEntityTypeUnderline)
An underlined text
Url(TextEntityTypeUrl)
An HTTP URL
Implementations
impl TextEntityType
[src]
Trait Implementations
impl AsRef<TextEntityType> for TextEntityType
[src]
pub fn as_ref(&self) -> &TextEntityType
[src]
impl Clone for TextEntityType
[src]
pub fn clone(&self) -> TextEntityType
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TextEntityType
[src]
impl Default for TextEntityType
[src]
impl<'de> Deserialize<'de> for TextEntityType
[src]
pub fn deserialize<D>(deserializer: D) -> Result<TextEntityType, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl RObject for TextEntityType
[src]
impl Serialize for TextEntityType
[src]
Auto Trait Implementations
impl RefUnwindSafe for TextEntityType
[src]
impl Send for TextEntityType
[src]
impl Sync for TextEntityType
[src]
impl Unpin for TextEntityType
[src]
impl UnwindSafe for TextEntityType
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,