fireblocks_sdk/models/
transaction_request_fee.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/// TransactionRequestFee : - **For UTXO-based blockchains**, the fee per bytes
15/// in the asset's smallest unit (Satoshi, Latoshi, etc.). - **For Ripple**, the
16/// fee for the transaction.  Note: - Fireblocks recommends using a numeric
17/// string for more precision. Although a number input exists, it is deprecated.
18/// - **For UTXO-based blockchains**, the fee per bytes in the asset's smallest
19///   unit (Satoshi, Latoshi, etc.). - **For Ripple**, the fee for the
20///   transaction.  Note: - Fireblocks recommends using a numeric string for
21///   more precision. Although a number input exists, it is deprecated.
22#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
23#[serde(untagged)]
24pub enum TransactionRequestFee {
25    /// Numeric string (recommended)
26    String(String),
27    /// Number (deprecated)
28    Number(f64),
29}
30
31impl Default for TransactionRequestFee {
32    fn default() -> Self {
33        Self::String(Default::default())
34    }
35}