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

Unique identifier for this user or bot.

User‘s or bot’s first name.

User‘s or bot’s last name.

User‘s or bot’s username.

Trait Implementations

impl Ord for User
[src]

[src]

impl Clone for User
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl ToUserId for User
[src]

[src]

impl PartialOrd<User> for User
[src]

[src]

[src]

[src]

[src]

[src]

impl Hash for User
[src]

[src]

impl PartialEq<User> for User
[src]

[src]

[src]

impl Debug for User
[src]

[src]

Formats the value using the given formatter.

impl<'de> Deserialize<'de> for User
[src]

[src]

impl Eq for User
[src]

impl ToChatRef for User
[src]