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
Source§impl<C> CanExportChatInviteLink for Cwhere
C: ToChatRef,
impl<C> CanExportChatInviteLink for Cwhere
C: ToChatRef,
fn export_invite_link(&self) -> ExportChatInviteLink
Source§impl<C> CanGetChatAdministrators for Cwhere
C: ToChatRef,
impl<C> CanGetChatAdministrators for Cwhere
C: ToChatRef,
fn get_administrators(&self) -> GetChatAdministrators
Source§impl<C> CanGetChatMemberForChat for Cwhere
C: ToChatRef,
impl<C> CanGetChatMemberForChat for Cwhere
C: ToChatRef,
fn get_member<O>(&self, other: O) -> GetChatMemberwhere
O: ToUserId,
Source§impl<C> CanGetChatMembersCount for Cwhere
C: ToChatRef,
impl<C> CanGetChatMembersCount for Cwhere
C: ToChatRef,
fn get_members_count(&self) -> GetChatMembersCount
Source§impl<C> CanKickChatMemberForChat for Cwhere
C: ToChatRef,
impl<C> CanKickChatMemberForChat for Cwhere
C: ToChatRef,
fn kick<O>(&self, other: O) -> KickChatMemberwhere
O: ToUserId,
Source§impl<M> CanSendAudio for Mwhere
M: ToChatRef,
impl<M> CanSendAudio for Mwhere
M: ToChatRef,
Source§impl<C> CanSendChatAction for Cwhere
C: ToChatRef,
impl<C> CanSendChatAction for Cwhere
C: ToChatRef,
fn chat_action(&self, action: ChatAction) -> SendChatAction
Source§impl<'p, 'f, 'l, C> CanSendContact<'p, 'f, 'l> for Cwhere
C: ToChatRef,
impl<'p, 'f, 'l, C> CanSendContact<'p, 'f, 'l> for Cwhere
C: ToChatRef,
Source§impl<M> CanSendDocument for Mwhere
M: ToChatRef,
impl<M> CanSendDocument for Mwhere
M: ToChatRef,
Source§impl<C> CanSendLocation for Cwhere
C: ToChatRef,
impl<C> CanSendLocation for Cwhere
C: ToChatRef,
Source§impl<C> CanSendMessage for Cwhere
C: ToChatRef,
impl<C> CanSendMessage for Cwhere
C: ToChatRef,
Source§impl<M> CanSendPhoto for Mwhere
M: ToChatRef,
impl<M> CanSendPhoto for Mwhere
M: ToChatRef,
Source§impl<C> CanSendPoll for Cwhere
C: ToChatRef,
impl<C> CanSendPoll for Cwhere
C: ToChatRef,
Source§impl<'t, 'a, 'f, C> CanSendVenue<'t, 'a, 'f> for Cwhere
C: ToChatRef,
impl<'t, 'a, 'f, C> CanSendVenue<'t, 'a, 'f> for Cwhere
C: ToChatRef,
Source§impl<M> CanSendVideo for Mwhere
M: ToChatRef,
impl<M> CanSendVideo for Mwhere
M: ToChatRef,
Source§impl<C> CanUnbanChatMemberForChat for Cwhere
C: ToChatRef,
impl<C> CanUnbanChatMemberForChat for Cwhere
C: ToChatRef,
fn unban<O>(&self, other: O) -> UnbanChatMemberwhere
O: ToUserId,
Source§impl<C> CanUnpinMessage for Cwhere
C: ToChatRef,
impl<C> CanUnpinMessage for Cwhere
C: ToChatRef,
fn unpin_message(&self) -> UnpinChatMessage
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.