libtad_models/astronomy/astronomy_event.rs
1use super::AstronomyEventType;
2use serde::Deserialize;
3
4#[derive(Deserialize)]
5/// Information about a sunrise/sunset event for a specific day.
6pub struct AstronomyEvent {
7 /// Indicates the type of the event.
8 pub r#type: AstronomyEventType,
9
10 /// Hour at which the event is happening (local time).
11 pub hour: i32,
12
13 /// Minute at which the event is happening (local time).
14 pub minute: i32,
15}