fireblocks_sdk/models/
fee_level.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/// FeeLevel : Represents the fee level for a transaction, which can be set as
12/// slow, medium, or fast. Only one of fee/feeLevel is required. Represents the
13/// fee level for a transaction, which can be set as slow, medium, or fast. Only
14/// one of fee/feeLevel is required.
15#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
16pub enum FeeLevel {
17    #[serde(rename = "LOW")]
18    Low,
19    #[serde(rename = "MEDIUM")]
20    Medium,
21    #[serde(rename = "HIGH")]
22    High,
23}
24
25impl std::fmt::Display for FeeLevel {
26    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
27        match self {
28            Self::Low => write!(f, "LOW"),
29            Self::Medium => write!(f, "MEDIUM"),
30            Self::High => write!(f, "HIGH"),
31        }
32    }
33}
34
35impl Default for FeeLevel {
36    fn default() -> FeeLevel {
37        Self::Low
38    }
39}