libtad-models 0.2.0

Time and Date API models
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use serde::Deserialize;

#[derive(Deserialize)]
/// Information about a location referenced by a region.
pub struct LocationRef {
    /// The ID of the location.
    pub id: String,

    /// The name of the location.
    pub name: String,

    /// The state of the location within the country (only if applicable).
    pub state: Option<String>,
}