55 releases (5 breaking)

new 0.6.2 Oct 18, 2024
0.6.0 Sep 25, 2024
0.5.13 Jul 20, 2024
0.2.0 Mar 15, 2024
Download history 62/week @ 2024-06-28 896/week @ 2024-07-05 805/week @ 2024-07-12 624/week @ 2024-07-19 149/week @ 2024-07-26 149/week @ 2024-08-02 37/week @ 2024-08-09 373/week @ 2024-08-16 236/week @ 2024-08-23 137/week @ 2024-08-30 410/week @ 2024-09-06 385/week @ 2024-09-13 529/week @ 2024-09-20 195/week @ 2024-09-27 54/week @ 2024-10-04 158/week @ 2024-10-11

946 downloads per month

MIT/Apache

6KB

DownToZero Cloud SDK

Latest Version

A base crate for the DownToZero Cloud SDK

Exposed functionality

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.

Features

  • containers
  • core
  • identity
  • full (contains all features at once)
  • objectstore
  • observability
  • rss2mail

Examples

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:?}");
}

Dependencies

~4–16MB
~242K SLoC