pub struct ChannelPost {
pub id: MessageId,
pub date: i64,
pub chat: Channel,
pub forward: Option<Forward>,
pub reply_to_message: Option<Box<MessageOrChannelPost>>,
pub edit_date: Option<i64>,
pub kind: MessageKind,
}
Expand description
This object represents a channel message.
Fields§
§id: MessageId
Unique message identifier inside this chat.
date: i64
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<i64>
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 duplicate 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 as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<ChannelPost, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl MessageGetFiles for ChannelPost
impl MessageGetFiles for ChannelPost
Source§impl MessageText for ChannelPost
impl MessageText for ChannelPost
Source§impl PartialEq for ChannelPost
impl PartialEq for ChannelPost
Source§impl PartialOrd for ChannelPost
impl PartialOrd for ChannelPost
Source§impl ToMessageId for ChannelPost
impl ToMessageId for ChannelPost
fn to_message_id(&self) -> MessageId
Source§impl ToSourceChat for ChannelPost
impl ToSourceChat for ChannelPost
fn to_source_chat(&self) -> ChatId
impl StructuralPartialEq for ChannelPost
Auto Trait Implementations§
impl Freeze for ChannelPost
impl RefUnwindSafe for ChannelPost
impl Send for ChannelPost
impl Sync for ChannelPost
impl Unpin for ChannelPost
impl UnwindSafe for ChannelPost
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