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

Contact's phone number

Contact's first name

Optional. Contact's last name

Optional. Contact's user identifier in Telegram

Optional. Additional data about the contact in the form of a vCard

Trait Implementations

impl Debug for Contact
[src]

Formats the value using the given formatter. Read more

impl Clone for Contact
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Contact
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl PartialOrd for Contact
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Auto Trait Implementations

impl Send for Contact

impl Sync for Contact