Struct telbot_types::message::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>,
}
Expand description

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>

Contact’s last name

user_id: Option<i64>

Contact’s user identifier in Telegram.

vcard: Option<String>

Additional data about the contact in the form of a vCard

Trait Implementations

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.