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 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 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 PartialEq<MessageOrChannelPost> for MessageOrChannelPost
impl PartialEq<MessageOrChannelPost> for MessageOrChannelPost
source§fn eq(&self, other: &MessageOrChannelPost) -> bool
fn eq(&self, other: &MessageOrChannelPost) -> bool
source§impl PartialOrd<MessageOrChannelPost> for MessageOrChannelPost
impl PartialOrd<MessageOrChannelPost> for MessageOrChannelPost
source§fn partial_cmp(&self, other: &MessageOrChannelPost) -> Option<Ordering>
fn partial_cmp(&self, other: &MessageOrChannelPost) -> 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