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 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 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 for MessageChat
impl PartialEq for MessageChat
Source§impl PartialOrd for MessageChat
impl PartialOrd for MessageChat
Source§impl ToChatRef for MessageChat
impl ToChatRef for MessageChat
fn to_chat_ref(&self) -> ChatRef
impl Eq for MessageChat
impl StructuralPartialEq for MessageChat
Auto Trait Implementations§
impl Freeze for MessageChat
impl RefUnwindSafe for MessageChat
impl Send for MessageChat
impl Sync for MessageChat
impl Unpin for MessageChat
impl UnwindSafe for MessageChat
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