fireblocks_sdk/models/
compliance_result.rs

1// Fireblocks API
2//
3// Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain.  - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
4//
5// The version of the OpenAPI document: 1.8.0
6// Contact: developers@fireblocks.com
7// Generated by: https://openapi-generator.tech
8
9use {
10    crate::models,
11    serde::{Deserialize, Serialize},
12};
13
14/// ComplianceResult : The result of the Compliance AML/Travel Rule screening.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ComplianceResult {
17    /// The end result of the AML screening.
18    #[serde(rename = "aml", skip_serializing_if = "Option::is_none")]
19    pub aml: Option<Vec<models::ComplianceScreeningResult>>,
20    /// The result of the Travel Rule screening.
21    #[serde(rename = "tr", skip_serializing_if = "Option::is_none")]
22    pub tr: Option<Vec<models::ComplianceScreeningResult>>,
23    /// The list of all results of the AML screening.
24    #[serde(rename = "amlList", skip_serializing_if = "Option::is_none")]
25    pub aml_list: Option<Vec<models::ComplianceScreeningResult>>,
26    /// Status of compliance result screening.
27    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
28    pub status: Option<Status>,
29    /// The results of the AML address registration.
30    #[serde(rename = "amlRegistration", skip_serializing_if = "Option::is_none")]
31    pub aml_registration: Option<Vec<models::AmlRegistrationResult>>,
32}
33
34impl ComplianceResult {
35    /// The result of the Compliance AML/Travel Rule screening.
36    pub fn new() -> ComplianceResult {
37        ComplianceResult {
38            aml: None,
39            tr: None,
40            aml_list: None,
41            status: None,
42            aml_registration: None,
43        }
44    }
45}
46/// Status of compliance result screening.
47#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
48pub enum Status {
49    #[serde(rename = "Started")]
50    Started,
51    #[serde(rename = "AMLStarted")]
52    AmlStarted,
53    #[serde(rename = "AMLCompleted")]
54    AmlCompleted,
55    #[serde(rename = "AMLFailed")]
56    AmlFailed,
57    #[serde(rename = "AMLInBackground")]
58    AmlinBackground,
59    #[serde(rename = "TRStarted")]
60    TrStarted,
61    #[serde(rename = "TRCompleted")]
62    TrCompleted,
63    #[serde(rename = "TRFailed")]
64    TrFailed,
65    #[serde(rename = "Completed")]
66    Completed,
67    #[serde(rename = "RegistrationStarted")]
68    RegistrationStarted,
69    #[serde(rename = "AMLRegistrationStarted")]
70    AmlRegistrationStarted,
71    #[serde(rename = "AMLRegistrationCompleted")]
72    AmlRegistrationCompleted,
73    #[serde(rename = "TRUpdateStarted")]
74    TrUpdateStarted,
75    #[serde(rename = "TRUpdateCompleted")]
76    TrUpdateCompleted,
77    #[serde(rename = "UpdateCompleted")]
78    UpdateCompleted,
79    #[serde(rename = "IncomingStarted")]
80    IncomingStarted,
81    #[serde(rename = "AMLIncomingStarted")]
82    AmlIncomingStarted,
83    #[serde(rename = "AMLIncomingCompleted")]
84    AmlIncomingCompleted,
85    #[serde(rename = "AMLIncomingFailed")]
86    AmlIncomingFailed,
87    #[serde(rename = "AMLIncomingInBackground")]
88    AmlIncomingInBackground,
89    #[serde(rename = "TRIncomingStarted")]
90    TrIncomingStarted,
91    #[serde(rename = "TRIncomingCompleted")]
92    TrIncomingCompleted,
93    #[serde(rename = "TRIncomingFailed")]
94    TrIncomingFailed,
95    #[serde(rename = "IncomingCompleted")]
96    IncomingCompleted,
97}
98
99impl Default for Status {
100    fn default() -> Status {
101        Self::Started
102    }
103}