17 releases

0.4.5 Dec 24, 2024
0.4.3 Aug 21, 2022
0.4.2 Jun 28, 2022
0.3.0 Jan 23, 2022
0.1.1 Jul 25, 2020

#550 in Web programming

26 downloads per month

MIT/Apache

30KB
654 lines

api-client

Build Status

Rust api client for demos.tf

Example

use demostf_client::{ListOrder, ListParams, ApiClient};

#[tokio::main]
async fn main() -> Result<(), demostf_client::Error> {
    let client = ApiClient::new();

    let demos = client.list(ListParams::default().with_order(ListOrder::Ascending), 1).await?;

    for demo in demos {
        println!("{}: {}", demo.id, demo.name);
    }
    Ok(())
}

Dependencies

~8–24MB
~363K SLoC