pub struct ChatMemberStatusAdministrator {
pub custom_title: String,
pub can_be_edited: bool,
pub rights: ChatAdministratorRights,
}
Expand description
The user is a member of the chat and has some additional privileges. In basic groups, administrators can edit and delete messages sent by others, add new members, ban unprivileged members, and manage video chats. In supergroups and channels, there are more detailed options for administrator privileges
Fields§
§custom_title: String
A custom title of the administrator; 0-16 characters without emojis; applicable to supergroups only
can_be_edited: bool
True, if the current user can edit the administrator privileges for the called user
rights: ChatAdministratorRights
Rights of the administrator
Trait Implementations§
Source§impl Clone for ChatMemberStatusAdministrator
impl Clone for ChatMemberStatusAdministrator
Source§fn clone(&self) -> ChatMemberStatusAdministrator
fn clone(&self) -> ChatMemberStatusAdministrator
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 Default for ChatMemberStatusAdministrator
impl Default for ChatMemberStatusAdministrator
Source§fn default() -> ChatMemberStatusAdministrator
fn default() -> ChatMemberStatusAdministrator
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChatMemberStatusAdministrator
impl<'de> Deserialize<'de> for ChatMemberStatusAdministrator
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
Source§impl PartialEq for ChatMemberStatusAdministrator
impl PartialEq for ChatMemberStatusAdministrator
Source§fn eq(&self, other: &ChatMemberStatusAdministrator) -> bool
fn eq(&self, other: &ChatMemberStatusAdministrator) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ChatMemberStatusAdministrator
Auto Trait Implementations§
impl Freeze for ChatMemberStatusAdministrator
impl RefUnwindSafe for ChatMemberStatusAdministrator
impl Send for ChatMemberStatusAdministrator
impl Sync for ChatMemberStatusAdministrator
impl Unpin for ChatMemberStatusAdministrator
impl UnwindSafe for ChatMemberStatusAdministrator
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