authentik_client/models/
application_entitlement.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[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 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}