Skip to main content

weatherkit/
sun_events.rs

1//! WeatherKit sun event types.
2
3use serde::Deserialize;
4
5/// Represents WeatherKit sun event values.
6#[derive(Debug, Clone, PartialEq, Eq, Deserialize)]
7#[serde(rename_all = "camelCase")]
8pub struct SunEvents {
9    /// Matches the WeatherKit astronomical dawn value.
10    pub astronomical_dawn: Option<String>,
11    /// Matches the WeatherKit nautical dawn value.
12    pub nautical_dawn: Option<String>,
13    /// Matches the WeatherKit civil dawn value.
14    pub civil_dawn: Option<String>,
15    /// Matches the WeatherKit sunrise value.
16    pub sunrise: Option<String>,
17    /// Matches the WeatherKit solar noon value.
18    pub solar_noon: Option<String>,
19    /// Matches the WeatherKit sunset value.
20    pub sunset: Option<String>,
21    /// Matches the WeatherKit civil dusk value.
22    pub civil_dusk: Option<String>,
23    /// Matches the WeatherKit nautical dusk value.
24    pub nautical_dusk: Option<String>,
25    /// Matches the WeatherKit astronomical dusk value.
26    pub astronomical_dusk: Option<String>,
27    /// Matches the WeatherKit solar midnight value.
28    pub solar_midnight: Option<String>,
29}