Skip to content

5ika/jelastic-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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),
    }
}

Releases

No releases published

Packages

No packages published

Languages