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
sourceimpl Clone for MessageOrChannelPost
impl Clone for MessageOrChannelPost
sourcefn clone(&self) -> MessageOrChannelPost
fn clone(&self) -> MessageOrChannelPost
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for MessageOrChannelPost
impl Debug for MessageOrChannelPost
sourceimpl<'de> Deserialize<'de> for MessageOrChannelPost
impl<'de> Deserialize<'de> for MessageOrChannelPost
sourcefn deserialize<D>(deserializer: D) -> Result<MessageOrChannelPost, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<MessageOrChannelPost, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<MessageOrChannelPost> for MessageOrChannelPost
impl PartialEq<MessageOrChannelPost> for MessageOrChannelPost
sourcefn eq(&self, other: &MessageOrChannelPost) -> bool
fn eq(&self, other: &MessageOrChannelPost) -> bool
sourceimpl PartialOrd<MessageOrChannelPost> for MessageOrChannelPost
impl PartialOrd<MessageOrChannelPost> for MessageOrChannelPost
sourcefn partial_cmp(&self, other: &MessageOrChannelPost) -> Option<Ordering>
fn partial_cmp(&self, other: &MessageOrChannelPost) -> Option<Ordering>
1.0.0 · sourcefn 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 moresourceimpl ToMessageId for MessageOrChannelPost
impl ToMessageId for MessageOrChannelPost
fn to_message_id(&self) -> MessageId
sourceimpl ToSourceChat for MessageOrChannelPost
impl ToSourceChat for MessageOrChannelPost
fn to_source_chat(&self) -> ChatId
impl StructuralPartialEq for MessageOrChannelPost
Auto Trait Implementations
impl RefUnwindSafe for MessageOrChannelPost
impl Send for MessageOrChannelPost
impl Sync for MessageOrChannelPost
impl Unpin for MessageOrChannelPost
impl UnwindSafe for MessageOrChannelPost
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more