Enum telegram_bot_ars::types::MessageChat
source · pub enum MessageChat {
Private(User),
Group(Group),
Supergroup(Supergroup),
// some variants omitted
}Expand description
This object represents a private, group or supergroup.
Variants§
Implementations§
Trait Implementations§
source§impl Clone for MessageChat
impl Clone for MessageChat
source§fn clone(&self) -> MessageChat
fn clone(&self) -> MessageChat
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 MessageChat
impl Debug for MessageChat
source§impl Hash for MessageChat
impl Hash for MessageChat
source§impl Ord for MessageChat
impl Ord for MessageChat
source§fn cmp(&self, other: &MessageChat) -> Ordering
fn cmp(&self, other: &MessageChat) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<MessageChat> for MessageChat
impl PartialEq<MessageChat> for MessageChat
source§fn eq(&self, other: &MessageChat) -> bool
fn eq(&self, other: &MessageChat) -> bool
source§impl PartialOrd<MessageChat> for MessageChat
impl PartialOrd<MessageChat> for MessageChat
source§fn partial_cmp(&self, other: &MessageChat) -> Option<Ordering>
fn partial_cmp(&self, other: &MessageChat) -> 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