fireblocks_sdk/models/
account_type.rs1use {
10 crate::models,
11 serde::{Deserialize, Serialize},
12};
13
14#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
17pub enum AccountType {
18 #[serde(rename = "EXCHANGE_ACCOUNT")]
19 ExchangeAccount,
20 #[serde(rename = "UNMANAGED_WALLET")]
21 UnmanagedWallet,
22 #[serde(rename = "VAULT_ACCOUNT")]
23 VaultAccount,
24 #[serde(rename = "NETWORK_CONNECTION")]
25 NetworkConnection,
26 #[serde(rename = "FIAT_ACCOUNT")]
27 FiatAccount,
28}
29
30impl std::fmt::Display for AccountType {
31 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
32 match self {
33 Self::ExchangeAccount => write!(f, "EXCHANGE_ACCOUNT"),
34 Self::UnmanagedWallet => write!(f, "UNMANAGED_WALLET"),
35 Self::VaultAccount => write!(f, "VAULT_ACCOUNT"),
36 Self::NetworkConnection => write!(f, "NETWORK_CONNECTION"),
37 Self::FiatAccount => write!(f, "FIAT_ACCOUNT"),
38 }
39 }
40}
41
42impl Default for AccountType {
43 fn default() -> AccountType {
44 Self::ExchangeAccount
45 }
46}