Crates.io | eargast-rs |
lib.rs | eargast-rs |
version | 0.1.0 |
source | src |
created_at | 2022-06-25 22:21:44.272933 |
updated_at | 2022-06-25 22:29:27.602497 |
description | An async client for getting Formula 1 schedules, qualifying, and race results powered by the Eargast API |
homepage | |
repository | |
max_upload_size | |
id | 613309 |
size | 14,532 |
This project introduces an Eargast
struct which can be used to query the
Eargast API.
It currently supports getting:
All three can be queried for either the current season or any past season.
let client = Eargast::new()?;
let race_results = client
.race_results(None, None)
.await?;
let client = Eargast::new()?;
let races = client
.race_schedule(Some("2020"))
.await?;
let client = Eargast::new()?;
let races = client
.qualifying_results(Some(1), Some("2019"))
.await?;