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
15
16
17
18
use crate::{astronomy::AstronomyDetails, places::Geo};
use serde::Deserialize;

#[derive(Debug, Deserialize)]
/// Information about requested location and astronomical objects.
pub struct AstronomyLocation {
    /// The id of the location.
    pub id: String,

    /// Geographical information about the location.
    pub geo: Geo,

    /// The part of the queried place that this location matches.
    pub matchparam: String,

    /// Requested astronomical information.
    pub astronomy: AstronomyDetails,
}