pub struct User {
pub user_id: i64,
pub first_name: String,
pub last_name: Option<String>,
pub username: Option<String>,
pub is_bot: Option<bool>,
pub last_activity_time: Option<i64>,
pub description: Option<String>,
pub avatar_url: Option<String>,
pub full_avatar_url: Option<String>,
pub commands: Option<Vec<BotCommand>>,
}Expand description
Represents a Max user or bot.
Fields§
§user_id: i64Global MAX user identifier.
Do not confuse this with chat_id: one user can appear in different
private dialogs or group chats, each with its own chat_id.
first_name: String§last_name: Option<String>§username: Option<String>§is_bot: Option<bool>§last_activity_time: Option<i64>§description: Option<String>§avatar_url: Option<String>§full_avatar_url: Option<String>§commands: Option<Vec<BotCommand>>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for User
impl<'de> Deserialize<'de> for User
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
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