pub struct ChatMemberUpdate {
pub chat: Chat,
pub from: User,
pub date: Integer,
pub old_chat_member: ChatMember,
pub new_chat_member: ChatMember,
pub invite_link: Option<ChatInviteLink>,
}
Expand description
This object represents changes in the status of a chat member.
Fields§
§chat: Chat
Chat the user belongs to
from: User
Performer of the action, which resulted in the change
date: Integer
Date the change was done in Unix time
old_chat_member: ChatMember
Previous information about the chat member
new_chat_member: ChatMember
New information about the chat member
invite_link: Option<ChatInviteLink>
Chat invite link, which was used by the user to join the chat; for joining by invite link events only.
Trait Implementations§
source§impl Clone for ChatMemberUpdate
impl Clone for ChatMemberUpdate
source§fn clone(&self) -> ChatMemberUpdate
fn clone(&self) -> ChatMemberUpdate
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 ChatMemberUpdate
impl Debug for ChatMemberUpdate
source§impl<'de> Deserialize<'de> for ChatMemberUpdate
impl<'de> Deserialize<'de> for ChatMemberUpdate
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<ChatMemberUpdate> for ChatMemberUpdate
impl PartialEq<ChatMemberUpdate> for ChatMemberUpdate
source§fn eq(&self, other: &ChatMemberUpdate) -> bool
fn eq(&self, other: &ChatMemberUpdate) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ChatMemberUpdate> for ChatMemberUpdate
impl PartialOrd<ChatMemberUpdate> for ChatMemberUpdate
source§fn partial_cmp(&self, other: &ChatMemberUpdate) -> Option<Ordering>
fn partial_cmp(&self, other: &ChatMemberUpdate) -> 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