pub enum MessageOrChannelPost {
Message(Message),
ChannelPost(ChannelPost),
}
Expand description
This object represents a chat message or a channel post.
Variants§
Message(Message)
ChannelPost(ChannelPost)
Trait Implementations§
Source§impl Clone for MessageOrChannelPost
impl Clone for MessageOrChannelPost
Source§fn clone(&self) -> MessageOrChannelPost
fn clone(&self) -> MessageOrChannelPost
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 MessageOrChannelPost
impl Debug for MessageOrChannelPost
Source§impl<'de> Deserialize<'de> for MessageOrChannelPost
impl<'de> Deserialize<'de> for MessageOrChannelPost
Source§fn deserialize<D>(
deserializer: D,
) -> Result<MessageOrChannelPost, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<MessageOrChannelPost, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl MessageText for MessageOrChannelPost
impl MessageText for MessageOrChannelPost
Source§impl PartialEq for MessageOrChannelPost
impl PartialEq for MessageOrChannelPost
Source§impl PartialOrd for MessageOrChannelPost
impl PartialOrd for MessageOrChannelPost
Source§impl ToMessageId for MessageOrChannelPost
impl ToMessageId for MessageOrChannelPost
fn to_message_id(&self) -> MessageId
Source§impl ToSourceChat for MessageOrChannelPost
impl ToSourceChat for MessageOrChannelPost
fn to_source_chat(&self) -> ChatId
impl StructuralPartialEq for MessageOrChannelPost
Auto Trait Implementations§
impl Freeze for MessageOrChannelPost
impl RefUnwindSafe for MessageOrChannelPost
impl Send for MessageOrChannelPost
impl Sync for MessageOrChannelPost
impl Unpin for MessageOrChannelPost
impl UnwindSafe for MessageOrChannelPost
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