Skip to main content

hanzo_client/models/
acc_view.rs

1/*
2 * Hanzo Cloud API
3 *
4 * 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/.
5 *
6 * The version of the OpenAPI document: v1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct AccView {
16    /// Basis is the qualification category: income, net_worth, professional_license, or entity.
17    #[serde(rename = "basis", skip_serializing_if = "Option::is_none")]
18    pub basis: Option<String>,
19    /// CreatedAt is the unix second the record was created.
20    #[serde(rename = "createdAt", skip_serializing_if = "Option::is_none")]
21    pub created_at: Option<i32>,
22    /// EvidenceDocID references an evidence document in the org's sealed data room.
23    #[serde(rename = "evidenceDocId", skip_serializing_if = "Option::is_none")]
24    pub evidence_doc_id: Option<String>,
25    /// ExpiresAt is the unix second a confirmation ages out; 0 means none.
26    #[serde(rename = "expiresAt", skip_serializing_if = "Option::is_none")]
27    pub expires_at: Option<i32>,
28    /// ID is the accreditation record's opaque id.
29    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
30    pub id: Option<String>,
31    /// Method is how the state was established: self_attested, third_party_letter, or provider_verified.
32    #[serde(rename = "method", skip_serializing_if = "Option::is_none")]
33    pub method: Option<String>,
34    /// Note is a non-PII operator note.
35    #[serde(rename = "note", skip_serializing_if = "Option::is_none")]
36    pub note: Option<String>,
37    /// ReviewerSub is the org user who recorded a decision on this record.
38    #[serde(rename = "reviewerSub", skip_serializing_if = "Option::is_none")]
39    pub reviewer_sub: Option<String>,
40    /// Status is the tracked state: asserted, provider_verified, reviewer_confirmed, rejected, or expired.
41    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
42    pub status: Option<String>,
43    /// SubjectID is the opaque id of the subject the record is about.
44    #[serde(rename = "subjectId", skip_serializing_if = "Option::is_none")]
45    pub subject_id: Option<String>,
46    /// UpdatedAt is the unix second the record last changed.
47    #[serde(rename = "updatedAt", skip_serializing_if = "Option::is_none")]
48    pub updated_at: Option<i32>,
49}
50
51impl AccView {
52    pub fn new() -> AccView {
53        AccView {
54            basis: None,
55            created_at: None,
56            evidence_doc_id: None,
57            expires_at: None,
58            id: None,
59            method: None,
60            note: None,
61            reviewer_sub: None,
62            status: None,
63            subject_id: None,
64            updated_at: None,
65        }
66    }
67}
68