nomad_client_rs/models/
quota_spec.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize)]
4pub struct QuotaSpec {
5    #[serde(rename = "CreateIndex", skip_serializing_if = "Option::is_none")]
6    pub create_index: Option<i32>,
7    #[serde(rename = "Description", skip_serializing_if = "Option::is_none")]
8    pub description: Option<String>,
9    #[serde(rename = "Limits", skip_serializing_if = "Option::is_none")]
10    pub limits: Option<Vec<crate::models::QuotaLimit>>,
11    #[serde(rename = "ModifyIndex", skip_serializing_if = "Option::is_none")]
12    pub modify_index: Option<i32>,
13    #[serde(rename = "Name", skip_serializing_if = "Option::is_none")]
14    pub name: Option<String>,
15}