[][src]Struct telegram_bot::types::message::MessageEntity

pub struct MessageEntity {
    pub offset: i64,
    pub length: i64,
    pub kind: MessageEntityKind,
}

This object represents one special entity in a text message. For example, hashtags, usernames, URLs, etc.

Fields

offset: i64

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

length: i64

Length of the entity in UTF-16 code units

kind: MessageEntityKind

Kind of the entity.

Trait Implementations

impl Clone for MessageEntity[src]

impl Debug for MessageEntity[src]

impl<'de> Deserialize<'de> for MessageEntity[src]

impl PartialEq<MessageEntity> for MessageEntity[src]

impl PartialOrd<MessageEntity> for MessageEntity[src]

impl StructuralPartialEq for MessageEntity[src]

Auto Trait Implementations

impl RefUnwindSafe for MessageEntity[src]

impl Send for MessageEntity[src]

impl Sync for MessageEntity[src]

impl Unpin for MessageEntity[src]

impl UnwindSafe for MessageEntity[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]