demostf-client

Crates.iodemostf-client
lib.rsdemostf-client
version
sourcesrc
created_at2020-07-25 12:59:31.549319+00
updated_at2024-12-24 17:08:04.108847+00
descriptionApi client for demos.tf
homepage
repositoryhttps://github.com/demostf/api-client
max_upload_size
id269477
Cargo.toml error:TOML parse error at line 20, column 1 | 20 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
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: 49

cargo fmt