Struct telegram_bot::types::User [−][src]
pub struct User { pub id: Integer, pub first_name: String, pub last_name: Option<String>, pub username: Option<String>, }
Telegram type "User" (directly mapped)
Fields
id: Integer
first_name: String
last_name: Option<String>
username: Option<String>
Trait Implementations
impl Decodable for User
[src]
impl Decodable for User
fn decode<__D: Decoder>(d: &mut __D) -> Result<User, __D::Error>
[src]
fn decode<__D: Decoder>(d: &mut __D) -> Result<User, __D::Error>
Deserialize a value using a Decoder
.
impl Debug for User
[src]
impl Debug for User
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for User
[src]
impl PartialEq for User
fn eq(&self, other: &User) -> bool
[src]
fn eq(&self, other: &User) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &User) -> bool
[src]
fn ne(&self, other: &User) -> bool
This method tests for !=
.
impl Clone for User
[src]
impl Clone for User
fn clone(&self) -> User
[src]
fn clone(&self) -> User
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Encodable for User
[src]
impl Encodable for User