1 2 3 4 5 6 7 8 9 10 11 12 13 14
use crate::types::passport; use serde::Deserialize; /// Represents [`PassportData`][docs]. /// /// [docs]: https://core.telegram.org/bots/api#passportdata #[derive(Debug, PartialEq, Eq, Clone, Hash, Deserialize)] // todo: #[non_exhaustive] pub struct Data { /// Documents shared with the bot. pub data: Vec<passport::Element>, /// Credentials required to decrypt the data. pub credentials: passport::Credentials, }