cryptoapis/models/
get_wallet_asset_details_ri.rs

1/*
2 * CryptoAPIs
3 *
4 * Crypto APIs is a complex and innovative infrastructure layer that radically simplifies the development of any Blockchain and Crypto related applications. Organized around REST, Crypto APIs can assist both novice Bitcoin/Ethereum enthusiasts and crypto experts with the development of their blockchain applications. Crypto APIs provides unified endpoints and data, raw data, automatic tokens and coins forwardings, callback functionalities, and much more.
5 *
6 * The version of the OpenAPI document: 2021-03-20
7 * Contact: developers@cryptoapis.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
15pub struct GetWalletAssetDetailsRi {
16    #[serde(rename = "confirmedBalance")]
17    pub confirmed_balance: Box<crate::models::GetWalletAssetDetailsRiConfirmedBalance>,
18    /// Specifies the count of deposit addresses in the Wallet.
19    #[serde(rename = "depositAddressesCount")]
20    pub deposit_addresses_count: i32,
21    /// Represents fungible tokens'es detailed information
22    #[serde(rename = "fungibleTokens")]
23    pub fungible_tokens: Vec<crate::models::GetWalletAssetDetailsRiFungibleTokens>,
24    /// Defines the name of the Wallet given to it by the user.
25    #[serde(rename = "name")]
26    pub name: String,
27    /// Represents non-fungible tokens'es detailed information.
28    #[serde(rename = "nonFungibleTokens")]
29    pub non_fungible_tokens: Vec<crate::models::GetWalletAssetDetailsRiNonFungibleTokens>,
30    #[serde(rename = "recievedConfirmedAmount")]
31    pub recieved_confirmed_amount: Box<crate::models::GetWalletAssetDetailsRiRecievedConfirmedAmount>,
32    #[serde(rename = "sentConfirmedAmount")]
33    pub sent_confirmed_amount: Box<crate::models::GetWalletAssetDetailsRiSentConfirmedAmount>,
34}
35
36impl GetWalletAssetDetailsRi {
37    pub fn new(confirmed_balance: crate::models::GetWalletAssetDetailsRiConfirmedBalance, deposit_addresses_count: i32, fungible_tokens: Vec<crate::models::GetWalletAssetDetailsRiFungibleTokens>, name: String, non_fungible_tokens: Vec<crate::models::GetWalletAssetDetailsRiNonFungibleTokens>, recieved_confirmed_amount: crate::models::GetWalletAssetDetailsRiRecievedConfirmedAmount, sent_confirmed_amount: crate::models::GetWalletAssetDetailsRiSentConfirmedAmount) -> GetWalletAssetDetailsRi {
38        GetWalletAssetDetailsRi {
39            confirmed_balance: Box::new(confirmed_balance),
40            deposit_addresses_count,
41            fungible_tokens,
42            name,
43            non_fungible_tokens,
44            recieved_confirmed_amount: Box::new(recieved_confirmed_amount),
45            sent_confirmed_amount: Box::new(sent_confirmed_amount),
46        }
47    }
48}
49
50