libtad-rs 0.2.0

Rust library for accessing Time and Date APIs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use libtad_models::onthisday::{Event, Person};
use serde::Deserialize;

#[derive(Debug, Deserialize)]
/// On This Day API response.
pub struct OnThisDayResponse {
    #[serde(default)]
    /// List of returned events.
    pub events: Option<Vec<Event>>,

    #[serde(default)]
    /// List of returned births.
    pub births: Option<Vec<Person>>,

    #[serde(default)]
    /// List of returned deaths.
    pub deaths: Option<Vec<Person>>,
}