/*
 * This is an auto-generated file.
 * Any manual changes may be overwritten without notice!
 */

use derive_builder::Builder;
use serde::{Deserialize, Serialize};

/// WriteOptions are used to parametrize a write
///
/// This struct was generated based on the Go types of the official Nomad API.
#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize, Builder)]
pub struct WriteOptions {
    /// Providing a datacenter overwrites the region provided
    /// by the Config
    #[serde(rename = "Region")]
    pub region: String,

    /// Namespace is the target namespace for the write.
    #[serde(rename = "Namespace")]
    pub namespace: String,

    /// AuthToken is the secret ID of an ACL token
    #[serde(rename = "AuthToken")]
    pub auth_token: String,

    /// Set HTTP headers on the query.
    #[serde(rename = "Headers")]
    pub headers: std::collections::HashMap<String, String>,

    /// IdempotencyToken can be used to ensure the write is idempotent.
    #[serde(rename = "IdempotencyToken")]
    pub idempotency_token: String,
}
