nomad_client_rs/models/
acl_token.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize)]
4pub struct AclToken {
5    #[serde(rename = "AccessorID", skip_serializing_if = "Option::is_none")]
6    pub accessor_id: Option<String>,
7    #[serde(rename = "CreateIndex", skip_serializing_if = "Option::is_none")]
8    pub create_index: Option<i32>,
9    #[serde(rename = "CreateTime", skip_serializing_if = "Option::is_none")]
10    pub create_time: Option<String>,
11    #[serde(rename = "ExpirationTTL", skip_serializing_if = "Option::is_none")]
12    pub expiration_ttl: Option<i64>,
13    #[serde(rename = "ExpirationTime", skip_serializing_if = "Option::is_none")]
14    pub expiration_time: Option<String>,
15    #[serde(rename = "Global", skip_serializing_if = "Option::is_none")]
16    pub global: Option<bool>,
17    #[serde(rename = "ModifyIndex", skip_serializing_if = "Option::is_none")]
18    pub modify_index: Option<i32>,
19    #[serde(rename = "Name", skip_serializing_if = "Option::is_none")]
20    pub name: Option<String>,
21    #[serde(rename = "Policies", skip_serializing_if = "Option::is_none")]
22    pub policies: Option<Vec<String>>,
23    #[serde(rename = "Roles", skip_serializing_if = "Option::is_none")]
24    pub roles: Option<Vec<crate::models::AclTokenRoleLink>>,
25    #[serde(rename = "SecretID", skip_serializing_if = "Option::is_none")]
26    pub secret_id: Option<String>,
27    #[serde(rename = "Type", skip_serializing_if = "Option::is_none")]
28    pub _type: Option<String>,
29}