pub struct Message {Show 14 fields
pub id: i64,
pub from_id: i64,
pub text: String,
pub peer_id: i64,
pub conversation_message_id: Option<i64>,
pub date: i64,
pub attachments: Vec<Attachment>,
pub reply_message: Option<Box<Message>>,
pub fwd_messages: Vec<Message>,
pub important: bool,
pub random_id: Option<i64>,
pub payload: Option<String>,
pub geo: Option<Geo>,
pub action: Option<Action>,
}Expand description
Message structure
Fields§
§id: i64Message ID
from_id: i64Sender ID
text: StringMessage text
peer_id: i64Peer ID (user/chat ID)
conversation_message_id: Option<i64>Conversation message ID
date: i64Date of sending (Unix timestamp)
attachments: Vec<Attachment>Message attachments
reply_message: Option<Box<Message>>Reply message (if any)
fwd_messages: Vec<Message>Forwarded messages
important: boolImportant flag
random_id: Option<i64>Random ID
payload: Option<String>Payload (for buttons)
geo: Option<Geo>Geo location
action: Option<Action>Action (for chat actions)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Message
impl<'de> Deserialize<'de> for Message
Source§fn 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
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more