15 releases

new 0.3.11 May 17, 2024
0.3.10 May 17, 2024
0.3.4 Apr 30, 2024
0.2.1 Apr 14, 2024
0.1.0 Mar 13, 2024

#1285 in Web programming

Download history 74/week @ 2024-03-07 189/week @ 2024-03-14 10/week @ 2024-03-21 9/week @ 2024-03-28 8/week @ 2024-04-04 197/week @ 2024-04-11 470/week @ 2024-04-18 608/week @ 2024-04-25 612/week @ 2024-05-02 309/week @ 2024-05-09

2,032 downloads per month

MIT/Apache

5KB

DownToZero Client API

Latest Version

A base crate for the DownToZero Cloud API

Exposed functionality

The dtz-crate only exposes the dtz-config crate which covers the API client and authentication requirments.

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–15MB
~214K SLoC