fireblocks_sdk/models/amount_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/// AmountInfo : The details of the requested amount to transfer.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct AmountInfo {
17 /// If the transfer is a withdrawal from an exchange, the actual amount that
18 /// was requested to be transferred. Otherwise, the requested amount.
19 #[serde(rename = "amount", skip_serializing_if = "Option::is_none")]
20 pub amount: Option<String>,
21 /// The amount requested by the user.
22 #[serde(rename = "requestedAmount", skip_serializing_if = "Option::is_none")]
23 pub requested_amount: Option<String>,
24 /// The net amount of the transaction, after fee deduction.
25 #[serde(rename = "netAmount", skip_serializing_if = "Option::is_none")]
26 pub net_amount: Option<String>,
27 /// The USD value of the requested amount.
28 #[serde(rename = "amountUSD", skip_serializing_if = "Option::is_none")]
29 pub amount_usd: Option<String>,
30}
31
32impl AmountInfo {
33 /// The details of the requested amount to transfer.
34 pub fn new() -> AmountInfo {
35 AmountInfo {
36 amount: None,
37 requested_amount: None,
38 net_amount: None,
39 amount_usd: None,
40 }
41 }
42}