ergast_rust 0.1.0

Collection of utilities to fetch data from amazing F1 dataset, the Ergast API.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
extern crate ergast_rust;

use ergast_rust::api;
use ergast_rust::ergast;

#[tokio::main]
async fn main() {
    let path = api::Path {
        year: 2023,
        round: Some(1),
    };
    let params = api::URLParams::default();
    let response = ergast::Ergast::results(path, params).await.unwrap();

    println!("{:?}", response);
}