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 Userfn 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 Userfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for User[src]
impl PartialEq for Userfn eq(&self, other: &User) -> bool[src]
fn eq(&self, other: &User) -> boolThis 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) -> boolThis method tests for !=.
impl Clone for User[src]
impl Clone for Userfn clone(&self) -> User[src]
fn clone(&self) -> UserReturns 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