tg_flows/types/shipping_address.rs
1use crate::types::CountryCode;
2use serde::{Deserialize, Serialize};
3
4/// This object represents a shipping address.
5///
6/// [The official docs](https://core.telegram.org/bots/api#shippingaddress).
7#[derive(Clone, Debug, Eq, Hash, PartialEq, Serialize, Deserialize)]
8pub struct ShippingAddress {
9 /// ISO 3166-1 alpha-2 country code.
10 pub country_code: CountryCode,
11
12 /// State, if applicable.
13 pub state: String,
14
15 /// City.
16 pub city: String,
17
18 /// First line for the address.
19 pub street_line1: String,
20
21 /// Second line for the address.
22 pub street_line2: String,
23
24 /// Address post code.
25 pub post_code: String,
26}