pub enum ChatAdminPermissionKind {
Show 15 variants
ReadAllMessages,
AddRemoveMembers,
AddAdmins,
ChangeChatInfo,
PinMessage,
Write,
CanCall,
EditLink,
PostEditDeleteMessage,
EditMessage,
DeleteMessage,
ViewStats,
Delete,
Edit,
Unknown(String),
}Expand description
Права администратора чата.
Variants§
ReadAllMessages
Читать все сообщения.
AddRemoveMembers
Добавлять/удалять участников.
AddAdmins
Добавлять администраторов.
ChangeChatInfo
Изменять информацию о чате.
PinMessage
Закреплять сообщения.
Write
Писать сообщения.
CanCall
Совершать звонки.
EditLink
Изменять ссылку на чат.
PostEditDeleteMessage
Публиковать, редактировать и удалять сообщения.
EditMessage
Редактировать сообщения.
DeleteMessage
Удалять сообщения.
ViewStats
Просматривать статистику.
Delete
Удалять (устаревшее).
Edit
Редактировать (устаревшее).
Unknown(String)
Неизвестное право (для обратной совместимости).
Implementations§
Trait Implementations§
Source§impl Clone for ChatAdminPermissionKind
impl Clone for ChatAdminPermissionKind
Source§fn clone(&self) -> ChatAdminPermissionKind
fn clone(&self) -> ChatAdminPermissionKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ChatAdminPermissionKind
impl Debug for ChatAdminPermissionKind
Source§impl PartialEq for ChatAdminPermissionKind
impl PartialEq for ChatAdminPermissionKind
Source§fn eq(&self, other: &ChatAdminPermissionKind) -> bool
fn eq(&self, other: &ChatAdminPermissionKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ChatAdminPermissionKind
impl StructuralPartialEq for ChatAdminPermissionKind
Auto Trait Implementations§
impl Freeze for ChatAdminPermissionKind
impl RefUnwindSafe for ChatAdminPermissionKind
impl Send for ChatAdminPermissionKind
impl Sync for ChatAdminPermissionKind
impl Unpin for ChatAdminPermissionKind
impl UnsafeUnpin for ChatAdminPermissionKind
impl UnwindSafe for ChatAdminPermissionKind
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
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§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
Compare self to
key and return true if they are equal.