jelastic-rs

Crates.iojelastic-rs
lib.rsjelastic-rs
version0.1.0
sourcesrc
created_at2022-06-01 06:38:24.377318
updated_at2022-06-01 06:38:24.377318
description Rust wrapper for the Jelastic API
homepage
repositoryhttps://github.com/5ika/jelastic-rs
max_upload_size
id597943
size39,689
Tim Izzo (5ika)

documentation

README

Rust wrapper for the Jelastic API.

Install

Set jelastic-rs dependency in Cargo.toml (see the last version on crates.io):

...

[dependencies]
jelastic-rs = "0.1.0"

Use

use jelastic_rs;

#[tokio::main]
async fn main() {
    let jelastic_api = jelastic_rs::Api {
        host: String::from("<JELASTIC API HOST>"),
        token: String::from("<YOUR JELASTIC API TOKEN>"),
    };

    match jelastic_api.start_env("my-env").await {
        Ok(response) => println!("{:#?}", response),
        Err(error) => println!("Error: {}", error),
    }
}
Commit count: 3

cargo fmt