pub struct ChatUser {
pub first_name: String,
pub last_name: Option<String>,
pub bio: Option<String>,
}Expand description
This object respresents an information about user from private chat
Fields§
§first_name: StringFirst name of the other party in a private chat
last_name: Option<String>Last name of the other party in a private chat
bio: Option<String>Bio of the other party in a private chat. Returned only in getChat.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ChatUser
impl<'de> Deserialize<'de> for ChatUser
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
impl StructuralPartialEq for ChatUser
Auto Trait Implementations§
impl Freeze for ChatUser
impl RefUnwindSafe for ChatUser
impl Send for ChatUser
impl Sync for ChatUser
impl Unpin for ChatUser
impl UnwindSafe for ChatUser
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