Struct rust_tdlib::types::ChatEventMemberRestricted
source · pub struct ChatEventMemberRestricted { /* private fields */ }
Expand description
A chat member was restricted/unrestricted or banned/unbanned, or the list of their restrictions has changed
Implementations§
source§impl ChatEventMemberRestricted
impl ChatEventMemberRestricted
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> ChatEventMemberRestrictedBuilder
pub fn member_id(&self) -> &MessageSender
pub fn old_status(&self) -> &ChatMemberStatus
pub fn new_status(&self) -> &ChatMemberStatus
Trait Implementations§
source§impl AsRef<ChatEventMemberRestricted> for ChatEventMemberRestricted
impl AsRef<ChatEventMemberRestricted> for ChatEventMemberRestricted
source§fn as_ref(&self) -> &ChatEventMemberRestricted
fn as_ref(&self) -> &ChatEventMemberRestricted
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for ChatEventMemberRestricted
impl Clone for ChatEventMemberRestricted
source§fn clone(&self) -> ChatEventMemberRestricted
fn clone(&self) -> ChatEventMemberRestricted
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 Debug for ChatEventMemberRestricted
impl Debug for ChatEventMemberRestricted
source§impl Default for ChatEventMemberRestricted
impl Default for ChatEventMemberRestricted
source§fn default() -> ChatEventMemberRestricted
fn default() -> ChatEventMemberRestricted
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ChatEventMemberRestricted
impl<'de> Deserialize<'de> for ChatEventMemberRestricted
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