Struct rust_tdlib::types::ChatMember
source · pub struct ChatMember { /* private fields */ }
Expand description
Describes a user or a chat as a member of another chat
Implementations§
source§impl ChatMember
impl ChatMember
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> ChatMemberBuilder
pub fn member_id(&self) -> &MessageSender
pub fn inviter_user_id(&self) -> i64
pub fn joined_chat_date(&self) -> i32
pub fn status(&self) -> &ChatMemberStatus
Trait Implementations§
source§impl AsRef<ChatMember> for ChatMember
impl AsRef<ChatMember> for ChatMember
source§fn as_ref(&self) -> &ChatMember
fn as_ref(&self) -> &ChatMember
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for ChatMember
impl Clone for ChatMember
source§fn clone(&self) -> ChatMember
fn clone(&self) -> ChatMember
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 ChatMember
impl Debug for ChatMember
source§impl Default for ChatMember
impl Default for ChatMember
source§fn default() -> ChatMember
fn default() -> ChatMember
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ChatMember
impl<'de> Deserialize<'de> for ChatMember
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