Skip to main content

hanzo_client/models/
verification_req.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 VerificationReq {
16    /// Email is an inline subject's contact email, sealed at rest.
17    #[serde(rename = "email", skip_serializing_if = "Option::is_none")]
18    pub email: Option<String>,
19    /// Kind is an inline subject's party type: \"individual\" (KYC) or \"business\" (KYB).
20    #[serde(rename = "kind", skip_serializing_if = "Option::is_none")]
21    pub kind: Option<String>,
22    /// Name is an inline subject's name, sealed at rest.
23    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
24    pub name: Option<String>,
25    /// Ref is the org's own opaque external id for an inline subject.
26    #[serde(rename = "ref", skip_serializing_if = "Option::is_none")]
27    pub r#ref: Option<String>,
28    /// SubjectID names an existing subject to verify; empty creates one inline.
29    #[serde(rename = "subjectId", skip_serializing_if = "Option::is_none")]
30    pub subject_id: Option<String>,
31}
32
33impl VerificationReq {
34    pub fn new() -> VerificationReq {
35        VerificationReq {
36            email: None,
37            kind: None,
38            name: None,
39            r#ref: None,
40            subject_id: None,
41        }
42    }
43}
44