fireblocks_sdk/models/
account_type.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/// AccountType : Account type
15/// Account type
16#[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}