Struct tg_bot_models::Contact [−][src]
pub struct Contact { pub phone_number: String, pub first_name: String, pub last_name: Option<String>, pub user_id: Option<i64>, pub vcard: Option<String>, }
This object represents a phone contact.
Fields
phone_number: String
Contact's phone number
first_name: String
Contact's first name
last_name: Option<String>
Optional. Contact's last name
user_id: Option<i64>
Optional. Contact's user identifier in Telegram
vcard: Option<String>
Optional. Additional data about the contact in the form of a vCard
Trait Implementations
impl Debug for Contact
[src]
impl Debug for Contact
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 Clone for Contact
[src]
impl Clone for Contact
fn clone(&self) -> Contact
[src]
fn clone(&self) -> Contact
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)
Performs copy-assignment from source
. Read more
impl PartialEq for Contact
[src]
impl PartialEq for Contact
fn eq(&self, other: &Contact) -> bool
[src]
fn eq(&self, other: &Contact) -> bool
This 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) -> bool
This method tests for !=
.
impl PartialOrd for Contact
[src]
impl PartialOrd for Contact
fn partial_cmp(&self, other: &Contact) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Contact) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Contact) -> bool
[src]
fn lt(&self, other: &Contact) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Contact) -> bool
[src]
fn le(&self, other: &Contact) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Contact) -> bool
[src]
fn gt(&self, other: &Contact) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Contact) -> bool
[src]
fn ge(&self, other: &Contact) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more