fireblocks_sdk/models/
connected_account_total_balance.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 ConnectedAccountTotalBalance {
16    /// The denominated currency value of the account.
17    #[serde(rename = "amount")]
18    pub amount: String,
19    /// The asset ID of the total balance.
20    #[serde(rename = "denominatedAssetId")]
21    pub denominated_asset_id: String,
22    /// Indicates whether the total amount represents the complete balance of
23    /// all assets in the account. When true, all asset balances have been
24    /// successfully converted to the denominated currency. When false, some
25    /// assets could not be included in the total due to missing exchange rates
26    /// or non-convertible assets.
27    #[serde(rename = "hasFullAssetCoverage")]
28    pub has_full_asset_coverage: bool,
29}
30
31impl ConnectedAccountTotalBalance {
32    pub fn new(
33        amount: String,
34        denominated_asset_id: String,
35        has_full_asset_coverage: bool,
36    ) -> ConnectedAccountTotalBalance {
37        ConnectedAccountTotalBalance {
38            amount,
39            denominated_asset_id,
40            has_full_asset_coverage,
41        }
42    }
43}