Struct telegram_bot_raw_ars::types::message::MessageEntity
source · pub struct MessageEntity {
pub offset: Integer,
pub length: Integer,
pub kind: MessageEntityKind,
}
Expand description
This object represents one special entity in a text message. For example, hashtags, usernames, URLs, etc.
Fields§
§offset: Integer
Offset in UTF-16 code units to the start of the entity
length: Integer
Length of the entity in UTF-16 code units
kind: MessageEntityKind
Kind of the entity.
Trait Implementations§
source§impl Clone for MessageEntity
impl Clone for MessageEntity
source§fn clone(&self) -> MessageEntity
fn clone(&self) -> MessageEntity
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MessageEntity
impl Debug for MessageEntity
source§impl<'de> Deserialize<'de> for MessageEntity
impl<'de> Deserialize<'de> for MessageEntity
source§fn deserialize<D>(deserializer: D) -> Result<MessageEntity, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<MessageEntity, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<MessageEntity> for MessageEntity
impl PartialEq<MessageEntity> for MessageEntity
source§fn eq(&self, other: &MessageEntity) -> bool
fn eq(&self, other: &MessageEntity) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<MessageEntity> for MessageEntity
impl PartialOrd<MessageEntity> for MessageEntity
source§fn partial_cmp(&self, other: &MessageEntity) -> Option<Ordering>
fn partial_cmp(&self, other: &MessageEntity) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more