speedrun-api 1.3.0

A wrapper for the speedrun.com REST API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use speedrun_api::{
    api::{variables::Variable, AsyncQuery},
    error::SpeedrunApiResult,
    types, SpeedrunApiBuilder,
};

#[tokio::main]
pub async fn main() -> SpeedrunApiResult<()> {
    env_logger::init();

    let client = SpeedrunApiBuilder::default().build_async()?;

    let endpoint = Variable::builder().id("ylpm6vlg").build().unwrap();
    let variable: types::Variable = endpoint.query_async(&client).await?;
    println!("{variable:#?}");

    Ok(())
}