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 duplicate of the value. Read more
1.0.0 (const: unstable) · 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 for PrivateChat
impl PartialEq for PrivateChat
Source§impl Serialize for PrivateChat
impl Serialize for PrivateChat
impl StructuralPartialEq for PrivateChat
Auto Trait Implementations§
impl Freeze for PrivateChat
impl RefUnwindSafe for PrivateChat
impl Send for PrivateChat
impl Sync for PrivateChat
impl Unpin for PrivateChat
impl UnsafeUnpin for PrivateChat
impl UnwindSafe for PrivateChat
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more