Struct telexide_fork::model::PrivateChat
source · pub struct PrivateChat {
pub id: i64,
pub username: Option<String>,
pub first_name: Option<String>,
pub bio: Option<String>,
pub last_name: Option<String>,
pub photo: Option<ChatPhoto>,
}Expand description
A private chat object, also known as a DM, between the bot and an user
Fields§
§id: i64Unique identifier for this chat
username: Option<String>Username if available
first_name: Option<String>First name of the other party
bio: Option<String>Bio of the other party in a private chat. Returned only in get_chat.
last_name: Option<String>Last name of the other party
photo: Option<ChatPhoto>Chat photo. Returned only in get_chat.
Trait Implementations§
source§impl Clone for PrivateChat
impl Clone for PrivateChat
source§fn clone(&self) -> PrivateChat
fn clone(&self) -> PrivateChat
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 PrivateChat
impl Debug for PrivateChat
source§impl<'de> Deserialize<'de> for PrivateChat
impl<'de> Deserialize<'de> for PrivateChat
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
source§impl PartialEq<PrivateChat> for PrivateChat
impl PartialEq<PrivateChat> for PrivateChat
source§fn eq(&self, other: &PrivateChat) -> bool
fn eq(&self, other: &PrivateChat) -> bool
This method tests for
self and other values to be equal, and is used
by ==.