libtad_models/places/
country.rs

1use serde::Deserialize;
2
3#[derive(Debug, Deserialize)]
4/// Information about a country.
5pub struct Country {
6    /// The ISO 3166-1-alpha-2 country code.
7    /// See <https://services.timeanddate.com/api/doc/v3/bi01.html#ISO3166>
8    pub id: String,
9
10    /// Full name of the country.
11    pub name: String,
12}