libtad_models/astronomy/
astronomy_object_details.rs

1use super::{AstronomyCurrent, AstronomyDay, AstronomyObjectType};
2use serde::Deserialize;
3
4#[derive(Debug, Deserialize)]
5/// Information about an astronomical object.
6pub struct AstronomyObjectDetails {
7    /// Object name.
8    pub name: AstronomyObjectType,
9
10    /// Lists and wraps all requested days where events are happening.
11    pub days: Option<Vec<AstronomyDay>>,
12
13    /// The current data for the object. Only if requested.
14    pub current: Option<AstronomyCurrent>,
15
16    /// The specific data for the object at isotime/utctime.
17    pub results: Option<Vec<AstronomyCurrent>>,
18}