1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#[allow(unused_imports)]
use serde_json::Value;

#[derive(Debug, Serialize, Deserialize)]
pub struct LicenseLicense {
    /// Number of days since a license expired.
    #[serde(rename = "days_since_expiry")]
    pub days_since_expiry: Option<i32>,
    /// Number of days before a license expires.
    #[serde(rename = "days_to_expiry")]
    pub days_to_expiry: Option<i32>,
    /// Date of license expiry. Format is YYYY-MM-DD. It is not included if there is no expiration. Feature is considered expired at end of this day. The cluster time is used to determine expiry.
    #[serde(rename = "expiration")]
    pub expiration: Option<String>,
    /// True when we are generating an alert that this feature has expired.
    #[serde(rename = "expired_alert")]
    pub expired_alert: bool,
    /// True when we are generating an alert that this feature is expiring.
    #[serde(rename = "expiring_alert")]
    pub expiring_alert: bool,
    /// Name of the licensed feature.
    #[serde(rename = "id")]
    pub id: String,
    /// Name of the licensed feature.
    #[serde(rename = "name")]
    pub name: String,
    /// Current status of the license.
    #[serde(rename = "status")]
    pub status: String,
    /// Tiered License details.
    #[serde(rename = "tiers")]
    pub tiers: Vec <crate::models::LicenseLicenseTier>,
}