pub struct User {
pub id: i64,
pub first_name: String,
pub last_name: Option<String>,
pub username: Option<String>,
}Expand description
A User is a human using the bot
Fields§
§id: i64User unique ID, Telegram generated
first_name: StringUser first name, mandatory from telegram API
last_name: Option<String>User last name, optional
username: Option<String>User username, optional
Trait Implementations§
Auto Trait Implementations§
impl Freeze for User
impl RefUnwindSafe for User
impl Send for User
impl Sync for User
impl Unpin for User
impl UnsafeUnpin for User
impl UnwindSafe for User
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