Struct telegram_bot_raw_ars::types::chat::User
source · pub struct User {
pub id: UserId,
pub first_name: String,
pub last_name: Option<String>,
pub username: Option<String>,
pub is_bot: bool,
pub language_code: Option<String>,
}
Expand description
This object represents a Telegram user or bot.
Fields§
§id: UserId
Unique identifier for this user or bot.
first_name: String
User‘s or bot’s first name.
last_name: Option<String>
User‘s or bot’s last name.
username: Option<String>
User‘s or bot’s username.
is_bot: bool
True, if this user is a bot.
language_code: Option<String>
IETF language tag of the user’s language
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
source§impl Ord for User
impl Ord for User
source§impl PartialEq<User> for User
impl PartialEq<User> for User
source§impl PartialOrd<User> for User
impl PartialOrd<User> for User
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more