fireblocks_sdk/models/account_identifier_v2.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/// AccountIdentifierV2 : Account identifier with type, ID, subtype, and address
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct AccountIdentifierV2 {
17 #[serde(rename = "type")]
18 pub r#type: models::AccountTypeV2,
19 /// Account ID
20 #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
21 pub id: Option<String>,
22 /// Account subtype
23 #[serde(rename = "subType", skip_serializing_if = "Option::is_none")]
24 pub sub_type: Option<String>,
25 /// Account address
26 #[serde(rename = "address", skip_serializing_if = "Option::is_none")]
27 pub address: Option<String>,
28}
29
30impl AccountIdentifierV2 {
31 /// Account identifier with type, ID, subtype, and address
32 pub fn new(r#type: models::AccountTypeV2) -> AccountIdentifierV2 {
33 AccountIdentifierV2 {
34 r#type,
35 id: None,
36 sub_type: None,
37 address: None,
38 }
39 }
40}