Struct telegram_bot_raw_ars::types::message::ChannelPost
source · pub struct ChannelPost {
pub id: MessageId,
pub date: Integer,
pub chat: Channel,
pub forward: Option<Forward>,
pub reply_to_message: Option<Box<MessageOrChannelPost>>,
pub edit_date: Option<Integer>,
pub kind: MessageKind,
}
Expand description
This object represents a channel message.
Fields§
§id: MessageId
Unique message identifier inside this chat.
date: Integer
Date the message was sent in Unix time.
chat: Channel
Conversation the message belongs to.
forward: Option<Forward>
Information about the original message.
reply_to_message: Option<Box<MessageOrChannelPost>>
For replies, the original message. Note that the Message object in this field will not contain further reply_to_message fields even if it itself is a reply.
edit_date: Option<Integer>
Date the message was last edited in Unix time.
kind: MessageKind
Kind of the message.
Trait Implementations§
source§impl Clone for ChannelPost
impl Clone for ChannelPost
source§fn clone(&self) -> ChannelPost
fn clone(&self) -> ChannelPost
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ChannelPost
impl Debug for ChannelPost
source§impl<'de> Deserialize<'de> for ChannelPost
impl<'de> Deserialize<'de> for ChannelPost
source§fn deserialize<D>(deserializer: D) -> Result<ChannelPost, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<ChannelPost, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<ChannelPost> for ChannelPost
impl PartialEq<ChannelPost> for ChannelPost
source§fn eq(&self, other: &ChannelPost) -> bool
fn eq(&self, other: &ChannelPost) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ChannelPost> for ChannelPost
impl PartialOrd<ChannelPost> for ChannelPost
source§fn partial_cmp(&self, other: &ChannelPost) -> Option<Ordering>
fn partial_cmp(&self, other: &ChannelPost) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more