Struct apid_telegram_bot::MessageEntity
source · [−]pub struct MessageEntity {
pub kind: MessageEntityKind,
pub offset: i32,
pub length: i32,
}Expand description
This object represents one special entity in a text message. For example, hashtags, usernames, URLs, etc.
Fields
kind: MessageEntityKindThe kind of message entity, and its metadata
offset: i32Offset in UTF-16 code units to the start of the entity
length: i32Length of the entity in UTF-16 code units
Trait Implementations
sourceimpl 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<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for MessageEntity
impl Serialize 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