Skip to main content

authentik_client/models/
application_entitlement.rs

1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2026.2.1
7 * Contact: hello@goauthentik.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// ApplicationEntitlement : ApplicationEntitlement Serializer
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ApplicationEntitlement {
17    #[serde(rename = "pbm_uuid")]
18    pub pbm_uuid: uuid::Uuid,
19    #[serde(rename = "name")]
20    pub name: String,
21    #[serde(rename = "app")]
22    pub app: uuid::Uuid,
23    #[serde(rename = "attributes", skip_serializing_if = "Option::is_none")]
24    pub attributes: Option<std::collections::HashMap<String, serde_json::Value>>,
25}
26
27impl ApplicationEntitlement {
28    /// ApplicationEntitlement Serializer
29    pub fn new(pbm_uuid: uuid::Uuid, name: String, app: uuid::Uuid) -> ApplicationEntitlement {
30        ApplicationEntitlement {
31            pbm_uuid,
32            name,
33            app,
34            attributes: None,
35        }
36    }
37}