Crates.io | dtz |
lib.rs | dtz |
version | |
source | src |
created_at | 2024-03-13 13:43:00.362372 |
updated_at | 2024-12-06 18:16:42.807869 |
description | The DownToZero Cloud SDK |
homepage | |
repository | https://github.com/DownToZero-Cloud/dtz-sdk-for-rust |
max_upload_size | |
id | 1171691 |
Cargo.toml error: | TOML parse error at line 19, column 1 | 19 | 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` |
size | 0 |
A base crate for the DownToZero Cloud SDK
The dtz
-crate only exposes the dtz-config
crate which covers the API client and authentication requirements.
All service specific functionality is exposed through features.
Retrieving the current Context.
[dependencies]
tokio = { version = "1", features = ["full] }
dtz = { version = "*", features = ["core"] }
#[tokio::main]
use std::str::FromStr;
use uuid::Uuid;
async fn main() {
let config = dtz::Configuration {
api_key: Some("some api key".to_string()),
..Default::default()
};
let ctx_id = "00000000-0000-0000-0000-000000000000";
let result = dtz::core::apis::default_api::get_context(&config, ctx_id)
.await
.unwrap();
println!("result: {result:?}");
}