Struct rust_tdlib::types::UpdateChatMember
source · pub struct UpdateChatMember { /* private fields */ }
Expand description
User rights changed in a chat; for bots only
Implementations§
source§impl UpdateChatMember
impl UpdateChatMember
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> UpdateChatMemberBuilder
pub fn chat_id(&self) -> i64
pub fn actor_user_id(&self) -> i64
pub fn date(&self) -> i32
pub fn invite_link(&self) -> &Option<ChatInviteLink>
pub fn old_chat_member(&self) -> &ChatMember
pub fn new_chat_member(&self) -> &ChatMember
Trait Implementations§
source§impl AsRef<UpdateChatMember> for UpdateChatMember
impl AsRef<UpdateChatMember> for UpdateChatMember
source§fn as_ref(&self) -> &UpdateChatMember
fn as_ref(&self) -> &UpdateChatMember
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for UpdateChatMember
impl Clone for UpdateChatMember
source§fn clone(&self) -> UpdateChatMember
fn clone(&self) -> UpdateChatMember
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 UpdateChatMember
impl Debug for UpdateChatMember
source§impl Default for UpdateChatMember
impl Default for UpdateChatMember
source§fn default() -> UpdateChatMember
fn default() -> UpdateChatMember
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for UpdateChatMember
impl<'de> Deserialize<'de> for UpdateChatMember
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