fireblocks_sdk/models/transaction_request_network_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/// TransactionRequestNetworkFee : The total transaction fee in the blockchain's
15/// largest unit. Notes: - Only two of the three arguments can be specified in
16/// a single transaction: `gasLimit`, `gasPrice`, and/or `networkFee`. -
17/// Fireblocks recommends using a numeric string for more precision. Although a
18/// number input exists, it is deprecated. The total transaction fee in the
19/// blockchain's largest unit. Notes: - Only two of the three arguments can be
20/// specified in a single transaction: `gasLimit`, `gasPrice`, and/or
21/// `networkFee`. - Fireblocks recommends using a numeric string for more
22/// precision. Although a number input exists, it is deprecated.
23#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
24#[serde(untagged)]
25pub enum TransactionRequestNetworkFee {
26 /// Numeric string (recommended)
27 String(String),
28 /// Number (deprecated)
29 Number(f64),
30}
31
32impl Default for TransactionRequestNetworkFee {
33 fn default() -> Self {
34 Self::String(Default::default())
35 }
36}