Crates.io | zenlayercloud-sdk |
lib.rs | zenlayercloud-sdk |
version | 0.0.2-alpha |
source | src |
created_at | 2024-11-25 05:40:05.360156 |
updated_at | 2024-11-25 10:45:56.066117 |
description | Async Zenlayer Cloud openapi wrapper |
homepage | |
repository | https://github.com/jarod/zenlayercloud-sdk-rs |
max_upload_size | |
id | 1459919 |
size | 20,830 |
Async Zenlayer Cloud openapi wrapper.
Cargo.toml:
zenlayercloud-sdk = "*"
# service api to use
zenlayercloud-sdk-cdn = "*"
rust:
use zenlayercloud_sdk::credentials::AccessKeyCredential;
use zenlayercloud_sdk_cdn::*;
async fn async_function() -> Result<()> {
// read credential from environment variable ZENLAYER_CLOUD_ACCESS_KEY_ID & ZENLAYER_CLOUD_ACCESS_KEY_PASSWORD
let credential = AccessKeyCredential::from_env()?;
let c = Client::new(credential);
let payload = DescribeCertificatesRequest::builder().build();
let res = c.describe_certificates(&payload).await;
Ok(())
}