1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use super::shipping;
use serde::Deserialize;

/// Represents [`OrderInfo`][docs].
///
/// [docs]: https://core.telegram.org/bots/api#orderinfo
#[derive(Debug, PartialEq, Eq, Clone, Hash, Deserialize)]
#[non_exhaustive]
pub struct OrderInfo {
    /// User's name.
    pub name: Option<String>,
    /// User's phone number.
    pub phone_number: Option<String>,
    /// User's email.
    pub email: Option<String>,
    /// User's shipping address.
    pub shipping_address: Option<shipping::Address>,
}