fireblocks_sdk/models/
account_holder_details.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#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct AccountHolderDetails {
16    /// Full name of the account holder.
17    #[serde(rename = "name")]
18    pub name: String,
19    #[serde(rename = "city", skip_serializing_if = "Option::is_none")]
20    pub city: Option<String>,
21    /// Country code, as specified in ISO 3166-1 alpha-2.
22    #[serde(rename = "country", skip_serializing_if = "Option::is_none")]
23    pub country: Option<String>,
24    /// Country administrative subdivision, as specified in ISO 3166-2.
25    #[serde(rename = "subdivision", skip_serializing_if = "Option::is_none")]
26    pub subdivision: Option<String>,
27    /// Account holder street address.
28    #[serde(rename = "address", skip_serializing_if = "Option::is_none")]
29    pub address: Option<String>,
30    #[serde(rename = "postalCode", skip_serializing_if = "Option::is_none")]
31    pub postal_code: Option<String>,
32}
33
34impl AccountHolderDetails {
35    pub fn new(name: String) -> AccountHolderDetails {
36        AccountHolderDetails {
37            name,
38            city: None,
39            country: None,
40            subdivision: None,
41            address: None,
42            postal_code: None,
43        }
44    }
45}