avina-cli 2.2.0

Rust CLI client for the LRZ-specific features of the Openstack-based LRZ Compute Cloud.
1
2
3
4
5
6
use std::error::Error;

pub(crate) async fn usage(api: avina::Api) -> Result<(), Box<dyn Error>> {
    println!("{}", serde_json::to_string(&api.usage.get().await?)?);
    Ok(())
}