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
impl TDChatMemberStatus 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