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