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 AccreditationReq {
    /// Basis is the qualification category: income, net_worth, professional_license, or entity.
    #[serde(rename = "basis", skip_serializing_if = "Option::is_none")]
    pub basis: Option<String>,
    /// EvidenceDocID references an evidence document in the org's sealed data room.
    #[serde(rename = "evidenceDocId", skip_serializing_if = "Option::is_none")]
    pub evidence_doc_id: Option<String>,
    /// ExpiresAt is the unix second a confirmation ages out; 0 means none.
    #[serde(rename = "expiresAt", skip_serializing_if = "Option::is_none")]
    pub expires_at: Option<i32>,
    /// Method is how the state was established: self_attested, third_party_letter, or provider_verified.
    #[serde(rename = "method", skip_serializing_if = "Option::is_none")]
    pub method: Option<String>,
    /// Note is a non-PII operator note.
    #[serde(rename = "note", skip_serializing_if = "Option::is_none")]
    pub note: Option<String>,
    /// Status may only be \"asserted\" (empty reads as asserted); every confirmed, rejected or expired state is recorded via the decision endpoint.
    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
    pub status: Option<String>,
    /// SubjectID names the subject this record is about; it must exist within the org.
    #[serde(rename = "subjectId", skip_serializing_if = "Option::is_none")]
    pub subject_id: Option<String>,
}

impl AccreditationReq {
    pub fn new() -> AccreditationReq {
        AccreditationReq {
            basis: None,
            evidence_doc_id: None,
            expires_at: None,
            method: None,
            note: None,
            status: None,
            subject_id: None,
        }
    }
}