fireblocks_sdk/models/
fee_info.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/// FeeInfo : Details of the transaction fees.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct FeeInfo {
17    /// The fee paid to the network.
18    #[serde(rename = "networkFee", skip_serializing_if = "Option::is_none")]
19    pub network_fee: Option<String>,
20    /// The total fee deducted by the exchange from the actual requested amount
21    /// (serviceFee = amount - netAmount).
22    #[serde(rename = "serviceFee", skip_serializing_if = "Option::is_none")]
23    pub service_fee: Option<String>,
24    /// The amount of gas required by/paid to the network to process the
25    /// transaction.
26    #[serde(rename = "gasPrice", skip_serializing_if = "Option::is_none")]
27    pub gas_price: Option<String>,
28    /// Layer 1 network fee for Layer 2 blockchain transactions
29    #[serde(rename = "L1networkFee", skip_serializing_if = "Option::is_none")]
30    pub l1network_fee: Option<String>,
31    /// Layer 2 network fee (gas price component for Layer 2 transactions)
32    #[serde(rename = "L2networkFee", skip_serializing_if = "Option::is_none")]
33    pub l2network_fee: Option<String>,
34    /// Indicates whether the relay paid the fee.
35    #[serde(rename = "paidByRelay", skip_serializing_if = "Option::is_none")]
36    pub paid_by_relay: Option<bool>,
37    /// Indicates whether the relay is the same tenant (`LOCAL`) or another
38    /// tenant (`THIRD_PARTY`).
39    #[serde(rename = "relayType", skip_serializing_if = "Option::is_none")]
40    pub relay_type: Option<String>,
41    /// The Vault account ID of the relay.
42    #[serde(rename = "relayId", skip_serializing_if = "Option::is_none")]
43    pub relay_id: Option<String>,
44    /// The name of the tenant hosting the third-party relay.
45    #[serde(rename = "relayName", skip_serializing_if = "Option::is_none")]
46    pub relay_name: Option<String>,
47    /// The USD equivalent value of the fee
48    #[serde(rename = "feeUSD", skip_serializing_if = "Option::is_none")]
49    pub fee_usd: Option<String>,
50}
51
52impl FeeInfo {
53    /// Details of the transaction fees.
54    pub fn new() -> FeeInfo {
55        FeeInfo {
56            network_fee: None,
57            service_fee: None,
58            gas_price: None,
59            l1network_fee: None,
60            l2network_fee: None,
61            paid_by_relay: None,
62            relay_type: None,
63            relay_id: None,
64            relay_name: None,
65            fee_usd: None,
66        }
67    }
68}