zenlayercloud-sdk-cdn

Crates.iozenlayercloud-sdk-cdn
lib.rszenlayercloud-sdk-cdn
version0.0.2-alpha
sourcesrc
created_at2024-11-25 05:42:01.670259
updated_at2024-11-25 10:46:22.315654
descriptionAsync Zenlayer Cloud openapi wrapper
homepage
repositoryhttps://github.com/jarod/zenlayercloud-sdk-rs
max_upload_size
id1459920
size19,260
Jarod Liu (jarod)

documentation

README

Introduction

Async Zenlayer Cloud openapi wrapper.

Usage

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(())
}
Commit count: 4

cargo fmt