[][src]Struct actix_telegram::types::ChatMember

pub struct ChatMember { /* fields omitted */ }

This object contains information about one member of a chat.

Methods

impl ChatMember
[src]

pub fn user(&self) -> &User
[src]

Information about the user

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

The member's status in the chat. Can be “creator”, “administrator”, “member”, “restricted”, “left” or “kicked”

pub fn until_date(&self) -> &Option<Integer>
[src]

Restricted and kicked only. Date when restrictions will be lifted for this user, unix time

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

Administrators only. True, if the bot is allowed to edit administrator privileges of that user

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

Administrators only. True, if the administrator can change the chat title, photo and other settings

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

Administrators only. True, if the administrator can post in the channel, channels only

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

Administrators only. True, if the administrator can edit messages of other users and can pin messages, channels only

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

Administrators only. True, if the administrator can delete messages of other users

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

Administrators only. True, if the administrator can invite new users to the chat

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

Administrators only. True, if the administrator can restrict, ban or unban chat members

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

Administrators only. True, if the administrator can pin messages, supergroups only

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

Administrators only. True, if the administrator can add new administrators with a subset of his own privileges or demote administrators that he has promoted, directly or indirectly (promoted by administrators that were appointed by the user)

pub fn can_send_messages(&self) -> &Option<bool>
[src]

Restricted only. True, if the user can send text messages, contacts, locations and venues

pub fn can_send_media_messages(&self) -> &Option<bool>
[src]

Restricted only. True, if the user can send audios, documents, photos, videos, video notes and voice notes, implies can_send_messages

pub fn can_send_other_messages(&self) -> &Option<bool>
[src]

Restricted only. True, if the user can send animations, games, stickers and use inline bots, implies can_send_media_messages

pub fn can_add_web_page_previews(&self) -> &Option<bool>
[src]

Restricted only. True, if user may add web page previews to his messages, implies can_send_media_messages

Trait Implementations

impl Clone for ChatMember
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for ChatMember
[src]

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

Auto Trait Implementations

impl Send for ChatMember

impl Sync for ChatMember

Blanket Implementations

impl<T> From for T
[src]

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

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

type Owned = T

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T> Erased for T

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