fireblocks_sdk/models/
create_vault_account_request.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 serde::{Deserialize, Serialize};
10
11#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
12pub struct CreateVaultAccountRequest {
13    /// Vault Account name
14    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
15    pub name: Option<String>,
16    /// Optional - if true, the created account and all related transactions
17    /// will not be shown on Fireblocks console
18    #[serde(rename = "hiddenOnUI", skip_serializing_if = "Option::is_none")]
19    pub hidden_on_ui: Option<bool>,
20    /// Optional - Sets a customer reference ID for AML integrations
21    #[serde(rename = "customerRefId", skip_serializing_if = "Option::is_none")]
22    pub customer_ref_id: Option<String>,
23    /// Optional - Sets the autoFuel property of the vault account for the
24    /// Fireblocks Gas Station
25    #[serde(rename = "autoFuel", skip_serializing_if = "Option::is_none")]
26    pub auto_fuel: Option<bool>,
27    /// Type of vault account. The default type will be set to MPC.<br/>  If the
28    /// workspace does not support the selected type, it will return an error.
29    #[serde(rename = "vaultType", skip_serializing_if = "Option::is_none")]
30    pub vault_type: Option<VaultType>,
31    /// Applicable only when the vault account type is KEY_LINK. For MPC, this
32    /// parameter will be ignored.<br/> If set to true and there are available
33    /// keys, random keys will be assigned to the newly created vault
34    /// account.<br/> If set to true and there are no available keys to be
35    /// assigned, it will return an error.<br/> If set to false, the vault
36    /// account will be created without any keys.
37    #[serde(rename = "autoAssign", skip_serializing_if = "Option::is_none")]
38    pub auto_assign: Option<bool>,
39}
40
41impl CreateVaultAccountRequest {
42    pub fn new() -> CreateVaultAccountRequest {
43        CreateVaultAccountRequest {
44            name: None,
45            hidden_on_ui: None,
46            customer_ref_id: None,
47            auto_fuel: None,
48            vault_type: None,
49            auto_assign: None,
50        }
51    }
52}
53/// Type of vault account. The default type will be set to MPC.<br/>  If the
54/// workspace does not support the selected type, it will return an error.
55#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
56pub enum VaultType {
57    #[serde(rename = "MPC")]
58    Mpc,
59    #[serde(rename = "KEY_LINK")]
60    KeyLink,
61}
62
63impl Default for VaultType {
64    fn default() -> VaultType {
65        Self::Mpc
66    }
67}