Skip to main content

egs_api/api/types/
entitlement.rs

1use serde::{Deserialize, Serialize};
2
3/// An entitlement record (game, DLC, or subscription grant).
4#[allow(missing_docs)]
5#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
6#[serde(rename_all = "camelCase")]
7pub struct Entitlement {
8    pub id: String,
9    pub entitlement_name: String,
10    pub namespace: String,
11    pub catalog_item_id: String,
12    pub account_id: String,
13    pub identity_id: String,
14    pub entitlement_type: String,
15    pub grant_date: String,
16    pub consumable: bool,
17    pub status: String,
18    pub active: bool,
19    pub use_count: i64,
20    pub created: String,
21    pub updated: String,
22    pub group_entitlement: bool,
23    pub original_use_count: Option<i64>,
24    pub platform_type: Option<String>,
25    pub country: Option<String>,
26}