8 unstable releases (3 breaking)
0.4.1 | Jan 11, 2021 |
---|---|
0.4.0 | Jan 8, 2021 |
0.3.0 | Oct 17, 2020 |
0.2.3 | Sep 1, 2020 |
0.1.0 | Apr 17, 2020 |
#536 in Asynchronous
26 downloads per month
435KB
8K
SLoC
Resources
- Build Status on other platforms
- Majority of the end points from https://api.aiven.io/doc/ have been implemented as of [07.01.2021]
- Documentation
Getting Started
// tokio = "1.0"
// aiven_rs = "0.4.0"
use aiven_rs::{cloud::types::ResClouds, AivenClient};
#[tokio::main]
async fn main() {
env_logger::init();
// use std::env;
//
// let token = env::var("AIVEN_TOKEN").expect("Please set env variable to read AIVEN_TOKEN");
// let client = AivenClient::from_token("https://api.aiven.io", "v1", &token);
let client = AivenClient::new("https://api.aiven.io", "v1");
let cloud_api = client.cloud();
let output: ResClouds = cloud_api.list_all().await.unwrap();
for cloud in &output.clouds {
println!("{:?}", cloud.cloud_name);
}
}
Running the examples:
RUST_LOG=aiven_rs=debug cargo run --example clouds
License
This project is licensed under
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
Dependencies
~10–25MB
~361K SLoC