use chrono::NaiveDate; use covid19::cv19api; fn main() { let deaths = cv19api::api::deaths(); if let Ok(resp) = deaths { println!("{:#?}", resp.data[0]); println!("{:#?}", resp.metadata) } let from = NaiveDate::from_ymd(2020, 4, 15); let to = NaiveDate::from_ymd(2020, 4, 25); let use_ground_truth = false; let parameterised = cv19api::api::parameterised_deaths(from, to, use_ground_truth); println!("{:#?}", parameterised) }