use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ApplicationEntitlement {
#[serde(rename = "pbm_uuid")]
pub pbm_uuid: uuid::Uuid,
#[serde(rename = "name")]
pub name: String,
#[serde(rename = "app")]
pub app: uuid::Uuid,
#[serde(rename = "attributes", skip_serializing_if = "Option::is_none")]
pub attributes: Option<std::collections::HashMap<String, serde_json::Value>>,
}
impl ApplicationEntitlement {
pub fn new(pbm_uuid: uuid::Uuid, name: String, app: uuid::Uuid) -> ApplicationEntitlement {
ApplicationEntitlement {
pbm_uuid,
name,
app,
attributes: None,
}
}
}