pub struct User {
pub _id: i32,
pub _is_bot: bool,
pub _first_name: String,
pub _last_name: Option<String>,
pub _username: Option<String>,
pub _language_code: Option<String>,
}Expand description
This object represents a Telegram user or bot.
Fields§
§_id: i32Unique identifier for this user or bot
_is_bot: boolTrue, if this user is a bot
_first_name: StringUser‘s or bot’s first name
_last_name: Option<String>Optional. User‘s or bot’s last name
_username: Option<String>Optional. User‘s or bot’s username
_language_code: Option<String>Optional. IETF language tag of the user’s language
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