Struct rust_tdlib::types::ChatMemberStatusAdministrator
source · pub struct ChatMemberStatusAdministrator { /* private fields */ }
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
Implementations§
source§impl ChatMemberStatusAdministrator
impl ChatMemberStatusAdministrator
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> ChatMemberStatusAdministratorBuilder
pub fn custom_title(&self) -> &String
pub fn can_be_edited(&self) -> bool
pub fn can_manage_chat(&self) -> bool
pub fn can_change_info(&self) -> bool
pub fn can_post_messages(&self) -> bool
pub fn can_edit_messages(&self) -> bool
pub fn can_delete_messages(&self) -> bool
pub fn can_invite_users(&self) -> bool
pub fn can_restrict_members(&self) -> bool
pub fn can_pin_messages(&self) -> bool
pub fn can_promote_members(&self) -> bool
pub fn can_manage_video_chats(&self) -> bool
pub fn is_anonymous(&self) -> bool
Trait Implementations§
source§impl AsRef<ChatMemberStatusAdministrator> for ChatMemberStatusAdministrator
impl AsRef<ChatMemberStatusAdministrator> for ChatMemberStatusAdministrator
source§fn as_ref(&self) -> &ChatMemberStatusAdministrator
fn as_ref(&self) -> &ChatMemberStatusAdministrator
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for ChatMemberStatusAdministrator
impl Clone for ChatMemberStatusAdministrator
source§fn clone(&self) -> ChatMemberStatusAdministrator
fn clone(&self) -> ChatMemberStatusAdministrator
Returns a copy 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