pub struct ChatUser {
    pub first_name: String,
    pub last_name: Option<String>,
    pub bio: Option<String>,
}
Expand description

This object respresents an information about user from private chat

Fields

first_name: String

First name of the other party in a private chat

last_name: Option<String>

Last name of the other party in a private chat

bio: Option<String>

Bio of the other party in a private chat. Returned only in getChat.

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.