1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
use crate::types::user; use serde::Deserialize; /// Represents a [`Contact`]. /// /// [`Contact`]: https://core.telegram.org/bots/api#contact #[derive(Debug, PartialEq, Eq, Clone, Hash, Deserialize)] #[non_exhaustive] pub struct Contact { /// The phone number of the contact. pub phone_number: String, /// The first name of the contact. pub first_name: String, /// The last name of the contact. pub last_name: Option<String>, /// The user id of the contact. pub user_id: Option<user::Id>, /// The vCard of the contact. pub vcard: Option<String>, }