Struct apid_telegram_bot::ChatUser
source · [−]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
sourceimpl<'de> Deserialize<'de> for ChatUser
impl<'de> Deserialize<'de> for ChatUser
sourcefn 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
Auto Trait Implementations
impl RefUnwindSafe for ChatUser
impl Send for ChatUser
impl Sync for ChatUser
impl Unpin for ChatUser
impl UnwindSafe for ChatUser
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more