nomad_client_rs/models/
namespace.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize)]
4pub struct Namespace {
5    #[serde(rename = "Capabilities", skip_serializing_if = "Option::is_none")]
6    pub capabilities: Option<crate::models::NamespaceCapabilities>,
7    #[serde(rename = "CreateIndex", skip_serializing_if = "Option::is_none")]
8    pub create_index: Option<i32>,
9    #[serde(rename = "Description", skip_serializing_if = "Option::is_none")]
10    pub description: Option<String>,
11    #[serde(rename = "Meta", skip_serializing_if = "Option::is_none")]
12    pub meta: Option<::std::collections::HashMap<String, String>>,
13    #[serde(rename = "ModifyIndex", skip_serializing_if = "Option::is_none")]
14    pub modify_index: Option<i32>,
15    #[serde(rename = "Name", skip_serializing_if = "Option::is_none")]
16    pub name: Option<String>,
17    #[serde(rename = "Quota", skip_serializing_if = "Option::is_none")]
18    pub quota: Option<String>,
19}