Struct telegram_bot::types::Message [−][src]
pub struct Message { pub message_id: Integer, pub from: User, pub chat: Chat, pub date: Integer, pub forward: Option<(User, Integer)>, pub reply: Option<Box<Message>>, pub msg: MessageType, pub caption: Option<String>, }
Fields
message_id: Integer
from: User
chat: Chat
date: Integer
forward: Option<(User, Integer)>
reply: Option<Box<Message>>
msg: MessageType
Trait Implementations
impl Debug for Message
[src]
impl Debug for Message
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Message
[src]
impl PartialEq for Message
fn eq(&self, other: &Message) -> bool
[src]
fn eq(&self, other: &Message) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Message) -> bool
[src]
fn ne(&self, other: &Message) -> bool
This method tests for !=
.
impl Clone for Message
[src]
impl Clone for Message
fn clone(&self) -> Message
[src]
fn clone(&self) -> Message
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Decodable for Message
[src]
impl Decodable for Message