aiven_rs 0.3.0

This is a rust sdk to interact with aiven-cloud apis.
Documentation

aiven-rs

aiven-rs is a rust-sdk to interact with aiven.io

Getting started

// use aiven_rs;

#[tokio::main]
async fn main()-> Result<(), Box<dyn std::error::Error>>{

let client = aiven_rs::AivenClient::new("https://api.aiven.io", "v1");
// If creating an API to interact with resources which require authentication
// let client = aiven_rs::AivenClient::from_token("https://api.aiven.io", "v1", "aiven-token");
let cloud_api = client.cloud();
let resp = cloud_api.list_all().await?;
for cloud in &resp.clouds{
println!("{:?}", cloud.cloud_name);
}
Ok(())
}