47 个版本 (4 个重大更新)
新版本 0.5.15 | 2024 年 8 月 21 日 |
---|---|
0.5.13 | 2024 年 7 月 20 日 |
0.2.0 | 2024 年 3 月 15 日 |
#2001 在 网络编程
每月下载量 653
6KB
DownToZero 云 SDK
DownToZero 云 SDK 的基础 crate
暴露的功能
dtz-crate 仅暴露了 dtz-config
crate,该 crate 覆盖了 API 客户端和认证需求。
所有特定于服务的功能都通过功能暴露。
功能
- 容器
- 核心
- 身份
- 全部 (一次性包含所有功能)
- 对象存储
- 可观察性
- RSS2邮件
示例
检索当前上下文。
[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:?}");
}
依赖项
~4–17MB
~256K SLoC