fireblocks_sdk/models/
smart_transfer_fund_term.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#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct SmartTransferFundTerm {
16    /// Asset name
17    #[serde(rename = "asset")]
18    pub asset: String,
19    /// Amount
20    #[serde(rename = "amount")]
21    pub amount: String,
22    /// Id of the network connection used.
23    #[serde(rename = "networkConnectionId")]
24    pub network_connection_id: String,
25    /// Id of the vault that is used as the source of the asset.
26    #[serde(rename = "srcId")]
27    pub src_id: String,
28    /// Source of the asset.
29    #[serde(rename = "srcType")]
30    pub src_type: String,
31    /// Transaction fee
32    #[serde(rename = "fee", skip_serializing_if = "Option::is_none")]
33    pub fee: Option<String>,
34    /// Transaction fee level.
35    #[serde(rename = "feeLevel", skip_serializing_if = "Option::is_none")]
36    pub fee_level: Option<String>,
37    /// Transaction note
38    #[serde(rename = "note", skip_serializing_if = "Option::is_none")]
39    pub note: Option<String>,
40}
41
42impl SmartTransferFundTerm {
43    pub fn new(
44        asset: String,
45        amount: String,
46        network_connection_id: String,
47        src_id: String,
48        src_type: String,
49    ) -> SmartTransferFundTerm {
50        SmartTransferFundTerm {
51            asset,
52            amount,
53            network_connection_id,
54            src_id,
55            src_type,
56            fee: None,
57            fee_level: None,
58            note: None,
59        }
60    }
61}