# Eargast-rs: your one stop shop for Formula 1 (F1) results and schedules This project introduces an `Eargast` struct which can be used to query the [Eargast API](https://ergast.com/mrd/). It currently supports getting: - race schedules - qualifying results - race results All three can be queried for either the current season or any past season. ## Example usage ### Get the last race's results ```rust let client = Eargast::new()?; let race_results = client .race_results(None, None) .await?; ``` ### Get the race schedule for 2020 ```rust let client = Eargast::new()?; let races = client .race_schedule(Some("2020")) .await?; ``` ### Get the qualifying results of the season opener in 2019 ```rust let client = Eargast::new()?; let races = client .qualifying_results(Some(1), Some("2019")) .await?; ```