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 MyReferralView {
    /// CreatedAt is when the referral was recorded, as a Unix timestamp.
    #[serde(rename = "createdAt", skip_serializing_if = "Option::is_none")]
    pub created_at: Option<i32>,
    /// ID is the referral's handle.
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    /// QualifiedAt is when the referee first made metered spend, as a Unix timestamp; 0 while the referral is still pending.
    #[serde(rename = "qualifiedAt", skip_serializing_if = "Option::is_none")]
    pub qualified_at: Option<i32>,
    /// Referee is the org that signed up with my code.
    #[serde(rename = "referee", skip_serializing_if = "Option::is_none")]
    pub referee: Option<String>,
    /// Status is the referral's lifecycle state: \"signup\" until the referee makes metered spend, then \"qualified\".
    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
    pub status: Option<String>,
}

impl MyReferralView {
    pub fn new() -> MyReferralView {
        MyReferralView {
            created_at: None,
            id: None,
            qualified_at: None,
            referee: None,
            status: None,
        }
    }
}