nomad-rs-api
The Nomad Rust API is an experimental project that provides an ergonomic, type-safe interface for interacting with the HashiCorp Nomad API using Rust.
⚠️ Status: This project is in an early experimental stage. Expect breaking changes, incomplete endpoints, and evolving design patterns as we iterate.
Usage
The client can be configured automatically using environment variabeles:
use ;
let client = new;
Alternatively, you can configure the client manually:
let config = Config ;
let client = new;
Query and Write Options
The query and write options can be easily built before making a request:
use ;
let query_opts = new
.with_namespace
.with_auth_token;
let write_opts = new
.with_namespace
.with_auth_token;