Struct telegram_bot_ars::types::ChatMemberUpdate
source · pub struct ChatMemberUpdate {
pub chat: Chat,
pub from: User,
pub date: i64,
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: ChatChat the user belongs to
from: UserPerformer of the action, which resulted in the change
date: i64Date the change was done in Unix time
old_chat_member: ChatMemberPrevious information about the chat member
new_chat_member: ChatMemberNew 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<ChatMemberUpdate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<ChatMemberUpdate, <__D as Deserializer<'de>>::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
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