squarecloud 0.1.0

Async Rust client for the SquareCloud API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use squarecloud::{ApiClient, DatabaseType};

#[tokio::main]
async fn main() {
    let client = ApiClient::new();
    let db = client
        .create_database(
            "my-db".to_string(),
            256,
            DatabaseType::Redis,
            "latest".to_string(),
        )
        .await
        .unwrap();
    println!("{db:#?}");
}