Struct telbot_types::markup::MessageEntity[][src]

pub struct MessageEntity {
    pub kind: MessageEntityKind,
    pub offset: usize,
    pub length: usize,
}
Expand description

This object represents one special entity in a text message.

For example, hashtags, usernames, URLs, etc.

Fields

kind: MessageEntityKind

Type of the entity

offset: usize

Offset in UTF-16 code units to the start of the entity

length: usize

Length of the entity in UTF-16 code units

Trait Implementations

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 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.