pub struct ChatMember {Show 16 fields
pub user: User,
pub status: ChatMemberStatus,
pub until_date: Option<i64>,
pub can_be_edited: Option<bool>,
pub can_change_info: Option<bool>,
pub can_post_messages: Option<bool>,
pub can_edit_messages: Option<bool>,
pub can_delete_messages: Option<bool>,
pub can_invite_users: Option<bool>,
pub can_restrict_members: Option<bool>,
pub can_pin_messages: Option<bool>,
pub can_promote_members: Option<bool>,
pub can_send_messages: Option<bool>,
pub can_send_media_messages: Option<bool>,
pub can_send_other_messages: Option<bool>,
pub can_add_web_page_previews: Option<bool>,
}Expand description
This object contains information about one member of the chat.
Fields§
§user: UserInformation about the user.
status: ChatMemberStatusThe member’s status in the chat.
until_date: Option<i64>Optional. Restricted and kicked only. Date when restrictions will be lifted for this user, unix time
can_be_edited: Option<bool>Optional. Administrators only. True, if the bot is allowed to edit administrator privileges of that user
can_change_info: Option<bool>Optional. Administrators only. True, if the administrator can change the chat title, photo and other settings
can_post_messages: Option<bool>Optional. Administrators only. True, if the administrator can post in the channel, channels only
can_edit_messages: Option<bool>Optional. Administrators only. True, if the administrator can edit messages of other users and can pin messages, channels only
can_delete_messages: Option<bool>Optional. Administrators only. True, if the administrator can delete messages of other users
can_invite_users: Option<bool>Optional. Administrators only. True, if the administrator can invite new users to the chat
can_restrict_members: Option<bool>Optional. Administrators only. True, if the administrator can restrict, ban or unban chat members
can_pin_messages: Option<bool>Optional. Administrators only. True, if the administrator can pin messages, supergroups only
can_promote_members: Option<bool>Optional. Administrators only. True, if the administrator can add new administrators with a subset of his own privileges or demote administrators that he has promoted, directly or indirectly (promoted by administrators that were appointed by the user)
can_send_messages: Option<bool>Optional. Restricted only. True, if the user can send text messages, contacts, locations and venues
can_send_media_messages: Option<bool>Optional. Restricted only. True, if the user can send audios, documents, photos, videos, video notes and voice notes, implies can_send_messages
can_send_other_messages: Option<bool>Optional. Restricted only. True, if the user can send animations, games, stickers and use inline bots, implies can_send_media_messages
can_add_web_page_previews: Option<bool>Optional. Restricted only. True, if user may add web page previews to his messages, implies can_send_media_messages
Trait Implementations§
Source§impl Clone for ChatMember
impl Clone for ChatMember
Source§fn clone(&self) -> ChatMember
fn clone(&self) -> ChatMember
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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<ChatMember, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ChatMember, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Hash for ChatMember
impl Hash for ChatMember
Source§impl Ord for ChatMember
impl Ord for ChatMember
Source§fn cmp(&self, other: &ChatMember) -> Ordering
fn cmp(&self, other: &ChatMember) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for ChatMember
impl PartialEq for ChatMember
Source§impl PartialOrd for ChatMember
impl PartialOrd for ChatMember
Source§impl ToChatRef for ChatMember
impl ToChatRef for ChatMember
fn to_chat_ref(&self) -> ChatRef
Source§impl ToUserId for ChatMember
impl ToUserId for ChatMember
fn to_user_id(&self) -> UserId
impl Eq for ChatMember
impl StructuralPartialEq for ChatMember
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
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<U> CanGetChatMemberForUser for Uwhere
U: ToUserId,
impl<U> CanGetChatMemberForUser for Uwhere
U: ToUserId,
fn get_member_from<O>(&self, other: O) -> GetChatMemberwhere
O: ToChatRef,
Source§impl<C> CanGetChatMembersCount for Cwhere
C: ToChatRef,
impl<C> CanGetChatMembersCount for Cwhere
C: ToChatRef,
fn get_members_count(&self) -> GetChatMembersCount
Source§impl<'b, U> CanGetUserProfilePhotos for Uwhere
U: ToUserId,
impl<'b, U> CanGetUserProfilePhotos for Uwhere
U: ToUserId,
fn get_user_profile_photos(&self) -> GetUserProfilePhotos
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<U> CanKickChatMemberForUser for Uwhere
U: ToUserId,
impl<U> CanKickChatMemberForUser for Uwhere
U: ToUserId,
fn kick_from<O>(&self, other: O) -> KickChatMemberwhere
O: ToChatRef,
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<U> CanUnbanChatMemberForUser for Uwhere
U: ToUserId,
impl<U> CanUnbanChatMemberForUser for Uwhere
U: ToUserId,
fn unban_in<O>(&self, other: O) -> UnbanChatMemberwhere
O: ToChatRef,
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
key and return true if they are equal.