pub struct ChatMember {
pub user_id: i32,
pub inviter_user_id: i32,
pub joined_chat_date: i32,
pub status: ChatMemberStatus,
pub bot_info: Option<BotInfo>,
}
Expand description
A user with information about joining/leaving a chat
Fields§
§user_id: i32
User identifier of the chat member
inviter_user_id: i32
Identifier of a user that invited/promoted/banned this member in the chat; 0 if unknown
joined_chat_date: i32
Point in time (Unix timestamp) when the user joined a chat
status: ChatMemberStatus
Status of the member in the chat
bot_info: Option<BotInfo>
If the user is a bot, information about the bot; may be null. Can be null even for a bot if the bot is not a chat member
Trait Implementations§
Source§impl Clone for ChatMember
impl Clone for ChatMember
Source§fn clone(&self) -> ChatMember
fn clone(&self) -> ChatMember
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 ChatMember
impl Debug for ChatMember
Source§impl<'de> Deserialize<'de> for ChatMember
impl<'de> Deserialize<'de> for ChatMember
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
Auto Trait Implementations§
impl Freeze for ChatMember
impl RefUnwindSafe for ChatMember
impl Send for ChatMember
impl Sync for ChatMember
impl Unpin for ChatMember
impl UnwindSafe for ChatMember
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