Struct telegram_bot::types::User
[−]
[src]
pub struct User { pub id: UserId, pub first_name: String, pub last_name: Option<String>, pub username: Option<String>, }
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.
Trait Implementations
impl Ord for User
[src]
impl Clone for User
[src]
fn clone(&self) -> User
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl ToUserId for User
[src]
fn to_user_id(&self) -> UserId
[src]
impl PartialOrd<User> for User
[src]
fn partial_cmp(&self, __arg_0: &User) -> Option<Ordering>
[src]
fn lt(&self, __arg_0: &User) -> bool
[src]
fn le(&self, __arg_0: &User) -> bool
[src]
fn gt(&self, __arg_0: &User) -> bool
[src]
fn ge(&self, __arg_0: &User) -> bool
[src]
impl Hash for User
[src]
impl PartialEq<User> for User
[src]
impl Debug for User
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter.
impl<'de> Deserialize<'de> for User
[src]
fn deserialize<__D>(
__deserializer: __D
) -> Result<User, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<User, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,