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
use super::AstronomyEventType;
use serde::Deserialize;

#[derive(Deserialize)]
/// Information about a sunrise/sunset event for a specific day.
pub struct AstronomyEvent {
    /// Indicates the type of the event.
    pub r#type: AstronomyEventType,

    /// Hour at which the event is happening (local time).
    pub hour: i32,

    /// Minute at which the event is happening (local time).
    pub minute: i32,
}