romad 0.2.0

Rust API for Hashicorp's Nomad
Documentation
/// Test client
///
extern crate romad;
use romad::client::RomadClient;

use tokio::runtime::Runtime;

#[test]
fn test_list_jobs() {
    let mut client = RomadClient::new("http://13.211.203.225", "4646", None).unwrap();

    let mut rt = Runtime::new().unwrap();
    let result = rt.block_on(client.list_jobs(None, None)).unwrap();

    println!("{:?}", result);
}