Crates.io | demostf-client |
lib.rs | demostf-client |
version | 0.4.3 |
source | src |
created_at | 2020-07-25 12:59:31.549319 |
updated_at | 2022-08-21 13:36:58.113561 |
description | Api client for demos.tf |
homepage | |
repository | https://github.com/demostf/api-client |
max_upload_size | |
id | 269477 |
size | 54,298 |
Rust api client for demos.tf
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(())
}