58 releases (5 breaking)

0.6.5 Nov 11, 2024
0.6.2 Oct 18, 2024
0.5.13 Jul 20, 2024
0.2.0 Mar 15, 2024

#1595 in Web programming

Download history 121/week @ 2024-08-05 91/week @ 2024-08-12 387/week @ 2024-08-19 192/week @ 2024-08-26 128/week @ 2024-09-02 458/week @ 2024-09-09 353/week @ 2024-09-16 572/week @ 2024-09-23 124/week @ 2024-09-30 64/week @ 2024-10-07 446/week @ 2024-10-14 185/week @ 2024-10-21 403/week @ 2024-10-28 511/week @ 2024-11-04 333/week @ 2024-11-11 103/week @ 2024-11-18

1,357 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

~5–17MB
~250K SLoC