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 SubjectSummary {
    /// CreatedAt is the unix second the subject was recorded.
    #[serde(rename = "createdAt", skip_serializing_if = "Option::is_none")]
    pub created_at: Option<i32>,
    /// HasEmail reports whether a contact email is on file, without exposing it.
    #[serde(rename = "hasEmail", skip_serializing_if = "Option::is_none")]
    pub has_email: Option<bool>,
    /// ID is the subject's opaque id.
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    /// Kind is the party type: \"individual\" (KYC) or \"business\" (KYB).
    #[serde(rename = "kind", skip_serializing_if = "Option::is_none")]
    pub kind: Option<String>,
    /// Ref is the org's own opaque external id for this subject.
    #[serde(rename = "ref", skip_serializing_if = "Option::is_none")]
    pub r#ref: Option<String>,
}

impl SubjectSummary {
    pub fn new() -> SubjectSummary {
        SubjectSummary {
            created_at: None,
            has_email: None,
            id: None,
            kind: None,
            r#ref: None,
        }
    }
}