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

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

/// ACLTokenRoleLink is used to link an ACL token to an ACL role. The ACL token
/// can therefore inherit all the ACL policy permissions that the ACL role
/// contains.
///
/// This struct was generated based on the Go types of the official Nomad API.
#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize, Builder)]
pub struct AclTokenRoleLink {
    /// ID is the ACLRole.ID UUID. This field is immutable and represents the
    /// absolute truth for the link.
    #[serde(rename = "ID")]
    pub id: String,

    /// Name is the human friendly identifier for the ACL role and is a
    /// convenience field for operators.
    #[serde(rename = "Name")]
    pub name: String,
}
