[−][src]Struct telegram_bot_raw::types::chat_member::ChatMember
This object contains information about one member of the chat.
Fields
user: User
Information about the user.
status: ChatMemberStatus
The member's status in the chat.
until_date: Option<Integer>
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
impl Clone for ChatMember
[src]
fn clone(&self) -> ChatMember
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ChatMember
[src]
impl<'de> Deserialize<'de> for ChatMember
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for ChatMember
[src]
impl Hash for ChatMember
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for ChatMember
[src]
fn cmp(&self, other: &ChatMember) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<ChatMember> for ChatMember
[src]
fn eq(&self, other: &ChatMember) -> bool
[src]
fn ne(&self, other: &ChatMember) -> bool
[src]
impl PartialOrd<ChatMember> for ChatMember
[src]
fn partial_cmp(&self, other: &ChatMember) -> Option<Ordering>
[src]
fn lt(&self, other: &ChatMember) -> bool
[src]
fn le(&self, other: &ChatMember) -> bool
[src]
fn gt(&self, other: &ChatMember) -> bool
[src]
fn ge(&self, other: &ChatMember) -> bool
[src]
impl StructuralEq for ChatMember
[src]
impl StructuralPartialEq for ChatMember
[src]
impl ToChatRef for ChatMember
[src]
fn to_chat_ref(&self) -> ChatRef
[src]
impl ToUserId for ChatMember
[src]
fn to_user_id(&self) -> UserId
[src]
Auto Trait Implementations
impl RefUnwindSafe for ChatMember
[src]
impl Send for ChatMember
[src]
impl Sync for ChatMember
[src]
impl Unpin for ChatMember
[src]
impl UnwindSafe for ChatMember
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<C> CanExportChatInviteLink for C where
C: ToChatRef,
[src]
C: ToChatRef,
pub fn export_invite_link(&Self) -> ExportChatInviteLink
[src]
impl<C> CanGetChat for C where
C: ToChatRef,
[src]
C: ToChatRef,
impl<C> CanGetChatAdministrators for C where
C: ToChatRef,
[src]
C: ToChatRef,
pub fn get_administrators(&Self) -> GetChatAdministrators
[src]
impl<C> CanGetChatMemberForChat for C where
C: ToChatRef,
[src]
C: ToChatRef,
pub fn get_member<O>(&Self, O) -> GetChatMember where
O: ToUserId,
[src]
O: ToUserId,
impl<U> CanGetChatMemberForUser for U where
U: ToUserId,
[src]
U: ToUserId,
pub fn get_member_from<O>(&Self, O) -> GetChatMember where
O: ToChatRef,
[src]
O: ToChatRef,
impl<C> CanGetChatMembersCount for C where
C: ToChatRef,
[src]
C: ToChatRef,
pub fn get_members_count(&Self) -> GetChatMembersCount
[src]
impl<'b, U> CanGetUserProfilePhotos for U where
U: ToUserId,
[src]
U: ToUserId,
pub fn get_user_profile_photos(&Self) -> GetUserProfilePhotos
[src]
impl<C> CanKickChatMemberForChat for C where
C: ToChatRef,
[src]
C: ToChatRef,
pub fn kick<O>(&Self, O) -> KickChatMember where
O: ToUserId,
[src]
O: ToUserId,
impl<U> CanKickChatMemberForUser for U where
U: ToUserId,
[src]
U: ToUserId,
pub fn kick_from<O>(&Self, O) -> KickChatMember where
O: ToChatRef,
[src]
O: ToChatRef,
impl<C> CanLeaveChat for C where
C: ToChatRef,
[src]
C: ToChatRef,
impl<M> CanSendAudio for M where
M: ToChatRef,
[src]
M: ToChatRef,
impl<C> CanSendChatAction for C where
C: ToChatRef,
[src]
C: ToChatRef,
pub fn chat_action(&Self, ChatAction) -> SendChatAction
[src]
impl<'p, 'f, 'l, C> CanSendContact<'p, 'f, 'l> for C where
C: ToChatRef,
[src]
C: ToChatRef,
pub fn contact<P, F>(&Self, P, F) -> SendContact<'p, 'f, 'l> where
F: Into<Cow<'f, str>>,
P: Into<Cow<'p, str>>,
[src]
F: Into<Cow<'f, str>>,
P: Into<Cow<'p, str>>,
impl<M> CanSendDocument for M where
M: ToChatRef,
[src]
M: ToChatRef,
impl<C> CanSendLocation for C where
C: ToChatRef,
[src]
C: ToChatRef,
impl<C> CanSendMessage for C where
C: ToChatRef,
[src]
C: ToChatRef,
impl<M> CanSendPhoto for M where
M: ToChatRef,
[src]
M: ToChatRef,
impl<C> CanSendPoll for C where
C: ToChatRef,
[src]
C: ToChatRef,
pub fn poll<'q, 'o, 'e, Q, O>(&Self, Q, Vec<O, Global>) -> SendPoll<'q, 'o, 'e> where
Q: Into<Cow<'q, str>>,
O: Into<Cow<'o, str>>,
[src]
Q: Into<Cow<'q, str>>,
O: Into<Cow<'o, str>>,
impl<'t, 'a, 'f, C> CanSendVenue<'t, 'a, 'f> for C where
C: ToChatRef,
[src]
C: ToChatRef,
pub fn venue<T, A>(&Self, f32, f32, T, A) -> SendVenue<'t, 'a, 'f> where
T: Into<Cow<'t, str>>,
A: Into<Cow<'a, str>>,
[src]
T: Into<Cow<'t, str>>,
A: Into<Cow<'a, str>>,
impl<M> CanSendVideo for M where
M: ToChatRef,
[src]
M: ToChatRef,
impl<C> CanUnbanChatMemberForChat for C where
C: ToChatRef,
[src]
C: ToChatRef,
pub fn unban<O>(&Self, O) -> UnbanChatMember where
O: ToUserId,
[src]
O: ToUserId,
impl<U> CanUnbanChatMemberForUser for U where
U: ToUserId,
[src]
U: ToUserId,
pub fn unban_in<O>(&Self, O) -> UnbanChatMember where
O: ToChatRef,
[src]
O: ToChatRef,
impl<C> CanUnpinMessage for C where
C: ToChatRef,
[src]
C: ToChatRef,
pub fn unpin_message(&Self) -> UnpinChatMessage
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,