3 releases

new 0.0.2-alpha Nov 25, 2024
0.0.1-alpha Nov 25, 2024
0.0.0-alpha Nov 25, 2024

#293 in Authentication

37 downloads per month
Used in zenlayercloud-sdk-cdn

Custom license

10KB
200 lines

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(())
}

Dependencies

~6–17MB
~224K SLoC