hanzo-client 8.5.156

Generated client for the Hanzo API — every service, one crate.
Documentation
/*
 * Hanzo Cloud API
 *
 * The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
 *
 * The version of the OpenAPI document: v1
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct LicensingPeriodVerifyResponse {
    /// AppID is the brand the token runs under.
    #[serde(rename = "app_id", skip_serializing_if = "Option::is_none")]
    pub app_id: Option<String>,
    /// Exp is the token's expiry, Unix seconds.
    #[serde(rename = "exp", skip_serializing_if = "Option::is_none")]
    pub exp: Option<i32>,
    /// Features are the capability grants the token carries.
    #[serde(rename = "features", skip_serializing_if = "Option::is_none")]
    pub features: Option<Vec<String>>,
    /// Bound reports that the token carries a device binding.
    #[serde(rename = "fingerprint_bound", skip_serializing_if = "Option::is_none")]
    pub fingerprint_bound: Option<bool>,
    /// Holder is who the token was issued to.
    #[serde(rename = "holder", skip_serializing_if = "Option::is_none")]
    pub holder: Option<String>,
    /// Nonce uniquely identifies the token.
    #[serde(rename = "nonce", skip_serializing_if = "Option::is_none")]
    pub nonce: Option<String>,
    /// Reason says why an invalid token was rejected. Empty when Valid.
    #[serde(rename = "reason", skip_serializing_if = "Option::is_none")]
    pub reason: Option<String>,
    /// Revoked reports that the signature was good but the token has been revoked.
    #[serde(rename = "revoked", skip_serializing_if = "Option::is_none")]
    pub revoked: Option<bool>,
    /// Valid is the single answer: signature, schema, expiry, app and revocation all passed.
    #[serde(rename = "valid", skip_serializing_if = "Option::is_none")]
    pub valid: Option<bool>,
}

impl LicensingPeriodVerifyResponse {
    pub fn new() -> LicensingPeriodVerifyResponse {
        LicensingPeriodVerifyResponse {
            app_id: None,
            exp: None,
            features: None,
            fingerprint_bound: None,
            holder: None,
            nonce: None,
            reason: None,
            revoked: None,
            valid: None,
        }
    }
}