Skip to content

jarod/zenlayercloud-sdk-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Zenlayer Cloud openapi wrapper in Rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages