[][src]Struct rtdlib::types::ChatMemberStatusAdministrator

pub struct ChatMemberStatusAdministrator { /* fields omitted */ }

The user is a member of a chat and has some additional privileges. In basic groups, administrators can edit and delete messages sent by others, add new members, and ban unprivileged members. In supergroups and channels, there are more detailed options for administrator privileges

Implementations

impl ChatMemberStatusAdministrator[src]

pub fn from_json<S: AsRef<str>>(json: S) -> RTDResult<Self>[src]

pub fn builder() -> RTDChatMemberStatusAdministratorBuilder[src]

pub fn custom_title(&self) -> &String[src]

pub fn can_be_edited(&self) -> bool[src]

pub fn can_change_info(&self) -> bool[src]

pub fn can_post_messages(&self) -> bool[src]

pub fn can_edit_messages(&self) -> bool[src]

pub fn can_delete_messages(&self) -> bool[src]

pub fn can_invite_users(&self) -> bool[src]

pub fn can_restrict_members(&self) -> bool[src]

pub fn can_pin_messages(&self) -> bool[src]

pub fn can_promote_members(&self) -> bool[src]

Trait Implementations

impl AsRef<ChatMemberStatusAdministrator> for ChatMemberStatusAdministrator[src]

impl Clone for ChatMemberStatusAdministrator[src]

impl Debug for ChatMemberStatusAdministrator[src]

impl Default for ChatMemberStatusAdministrator[src]

impl<'de> Deserialize<'de> for ChatMemberStatusAdministrator[src]

impl RObject for ChatMemberStatusAdministrator[src]

impl Serialize for ChatMemberStatusAdministrator[src]

impl TDChatMemberStatus for ChatMemberStatusAdministrator[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.