Struct telegram_bot::types::Contact [−][src]
pub struct Contact {
pub phone_number: String,
pub first_name: String,
pub last_name: Option<String>,
pub user_id: Option<Integer>,
}Telegram type "Contact" (directly mapped)
Fields
phone_number: String
first_name: String
last_name: Option<String>
user_id: Option<Integer>
Trait Implementations
impl Decodable for Contact[src]
impl Decodable for Contactfn decode<__D: Decoder>(d: &mut __D) -> Result<Contact, __D::Error>[src]
fn decode<__D: Decoder>(d: &mut __D) -> Result<Contact, __D::Error>Deserialize a value using a Decoder.
impl Debug for Contact[src]
impl Debug for Contactfn 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 Contact[src]
impl PartialEq for Contactfn eq(&self, other: &Contact) -> bool[src]
fn eq(&self, other: &Contact) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Contact) -> bool[src]
fn ne(&self, other: &Contact) -> boolThis method tests for !=.
impl Clone for Contact[src]
impl Clone for Contactfn clone(&self) -> Contact[src]
fn clone(&self) -> ContactReturns 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 Contact[src]
impl Encodable for Contact