[][src]Struct grammers_tl_types::types::Message

pub struct Message {
    pub out: bool,
    pub mentioned: bool,
    pub media_unread: bool,
    pub silent: bool,
    pub post: bool,
    pub from_scheduled: bool,
    pub legacy: bool,
    pub edit_hide: bool,
    pub id: i32,
    pub from_id: Option<i32>,
    pub to_id: Peer,
    pub fwd_from: Option<MessageFwdHeader>,
    pub via_bot_id: Option<i32>,
    pub reply_to_msg_id: Option<i32>,
    pub date: i32,
    pub message: String,
    pub media: Option<MessageMedia>,
    pub reply_markup: Option<ReplyMarkup>,
    pub entities: Option<Vec<MessageEntity>>,
    pub views: Option<i32>,
    pub edit_date: Option<i32>,
    pub post_author: Option<String>,
    pub grouped_id: Option<i64>,
    pub restriction_reason: Option<Vec<RestrictionReason>>,
}

Fields

out: boolmentioned: boolmedia_unread: boolsilent: boolpost: boolfrom_scheduled: boollegacy: booledit_hide: boolid: i32from_id: Option<i32>to_id: Peerfwd_from: Option<MessageFwdHeader>via_bot_id: Option<i32>reply_to_msg_id: Option<i32>date: i32message: Stringmedia: Option<MessageMedia>reply_markup: Option<ReplyMarkup>entities: Option<Vec<MessageEntity>>views: Option<i32>edit_date: Option<i32>post_author: Option<String>grouped_id: Option<i64>restriction_reason: Option<Vec<RestrictionReason>>

Trait Implementations

impl Clone for Message[src]

impl Debug for Message[src]

impl Deserializable for Message[src]

impl From<Message> for Message[src]

impl Identifiable for Message[src]

impl PartialEq<Message> for Message[src]

impl Serializable for Message[src]

impl StructuralPartialEq for Message[src]

impl TryFrom<Message> for Message[src]

type Error = WrongVariant

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for Message

impl Send for Message

impl Sync for Message

impl Unpin for Message

impl UnwindSafe for Message

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