[][src]Struct rtdlib::types::SetChatMemberStatus

pub struct SetChatMemberStatus { /* fields omitted */ }

Changes the status of a chat member, needs appropriate privileges. This function is currently not suitable for adding new members to the chat and transferring chat ownership; instead, use addChatMember or transferChatOwnership. The chat member status will not be changed until it has been synchronized with the server

Implementations

impl SetChatMemberStatus[src]

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

pub fn builder() -> RTDSetChatMemberStatusBuilder[src]

pub fn chat_id(&self) -> i64[src]

pub fn user_id(&self) -> i64[src]

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

Trait Implementations

impl AsRef<SetChatMemberStatus> for SetChatMemberStatus[src]

impl Clone for SetChatMemberStatus[src]

impl Debug for SetChatMemberStatus[src]

impl Default for SetChatMemberStatus[src]

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

impl RFunction for SetChatMemberStatus[src]

impl RObject for SetChatMemberStatus[src]

impl Serialize for SetChatMemberStatus[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.