15 unstable releases (3 breaking)
0.4.3 | Aug 21, 2022 |
---|---|
0.4.2 | Jun 28, 2022 |
0.4.1 | May 15, 2022 |
0.3.0 | Jan 23, 2022 |
0.1.1 | Jul 25, 2020 |
#1045 in Web programming
136 downloads per month
29KB
658 lines
api-client
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
~7–25MB
~363K SLoC