demostf-client

Crates.iodemostf-client
lib.rsdemostf-client
version0.4.3
sourcesrc
created_at2020-07-25 12:59:31.549319
updated_at2022-08-21 13:36:58.113561
descriptionApi client for demos.tf
homepage
repositoryhttps://github.com/demostf/api-client
max_upload_size
id269477
size54,298
Robin Appelman (icewind1991)

documentation

README

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(())
}
Commit count: 45

cargo fmt