fireblocks_sdk/models/
connected_account_balances.rs1use {
10 crate::models,
11 serde::{Deserialize, Serialize},
12};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct ConnectedAccountBalances {
16 #[serde(rename = "assetId")]
18 pub asset_id: String,
19 #[serde(rename = "availableAmount")]
21 pub available_amount: String,
22 #[serde(rename = "totalAmount")]
24 pub total_amount: String,
25 #[serde(rename = "lockedAmount", skip_serializing_if = "Option::is_none")]
27 pub locked_amount: Option<String>,
28 #[serde(rename = "creditAmount", skip_serializing_if = "Option::is_none")]
30 pub credit_amount: Option<String>,
31 #[serde(rename = "balanceType")]
33 pub balance_type: String,
34 #[serde(rename = "balanceName", skip_serializing_if = "Option::is_none")]
36 pub balance_name: Option<String>,
37}
38
39impl ConnectedAccountBalances {
40 pub fn new(
41 asset_id: String,
42 available_amount: String,
43 total_amount: String,
44 balance_type: String,
45 ) -> ConnectedAccountBalances {
46 ConnectedAccountBalances {
47 asset_id,
48 available_amount,
49 total_amount,
50 locked_amount: None,
51 credit_amount: None,
52 balance_type,
53 balance_name: None,
54 }
55 }
56}