Struct telegram_bot_fork_raw::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
sourceimpl Clone for MessageEntity
impl Clone for MessageEntity
sourcefn clone(&self) -> MessageEntity
fn clone(&self) -> MessageEntity
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for MessageEntity
impl Debug for MessageEntity
sourceimpl<'de> Deserialize<'de> for MessageEntity
impl<'de> Deserialize<'de> for MessageEntity
sourcefn 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
sourceimpl PartialEq<MessageEntity> for MessageEntity
impl PartialEq<MessageEntity> for MessageEntity
sourcefn eq(&self, other: &MessageEntity) -> bool
fn eq(&self, other: &MessageEntity) -> bool
sourceimpl PartialOrd<MessageEntity> for MessageEntity
impl PartialOrd<MessageEntity> for MessageEntity
sourcefn partial_cmp(&self, other: &MessageEntity) -> Option<Ordering>
fn partial_cmp(&self, other: &MessageEntity) -> Option<Ordering>
1.0.0 · sourcefn 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 moreimpl StructuralPartialEq for MessageEntity
Auto Trait Implementations
impl RefUnwindSafe for MessageEntity
impl Send for MessageEntity
impl Sync for MessageEntity
impl Unpin for MessageEntity
impl UnwindSafe for MessageEntity
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more