zenlayercloud-sdk

Crates.iozenlayercloud-sdk
lib.rszenlayercloud-sdk
version0.0.2-alpha
sourcesrc
created_at2024-11-25 05:40:05.360156
updated_at2024-11-25 10:45:56.066117
descriptionAsync Zenlayer Cloud openapi wrapper
homepage
repositoryhttps://github.com/jarod/zenlayercloud-sdk-rs
max_upload_size
id1459919
size20,830
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