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 super::{AstronomyCurrent, AstronomyDay, AstronomyObjectType};
use serde::Deserialize;

#[derive(Debug, Deserialize)]
/// Information about an astronomical object.
pub struct AstronomyObjectDetails {
    /// Object name.
    pub name: AstronomyObjectType,

    /// Lists and wraps all requested days where events are happening.
    pub days: Option<Vec<AstronomyDay>>,

    /// The current data for the object. Only if requested.
    pub current: Option<AstronomyCurrent>,

    /// The specific data for the object at isotime/utctime.
    pub results: Option<Vec<AstronomyCurrent>>,
}