fireblocks_sdk/models/
asset_class.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///
15#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
16pub enum AssetClass {
17    #[serde(rename = "NATIVE")]
18    Native,
19    #[serde(rename = "FT")]
20    Ft,
21    #[serde(rename = "FIAT")]
22    Fiat,
23    #[serde(rename = "NFT")]
24    Nft,
25    #[serde(rename = "SFT")]
26    Sft,
27}
28
29impl std::fmt::Display for AssetClass {
30    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
31        match self {
32            Self::Native => write!(f, "NATIVE"),
33            Self::Ft => write!(f, "FT"),
34            Self::Fiat => write!(f, "FIAT"),
35            Self::Nft => write!(f, "NFT"),
36            Self::Sft => write!(f, "SFT"),
37        }
38    }
39}
40
41impl Default for AssetClass {
42    fn default() -> AssetClass {
43        Self::Native
44    }
45}