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