binance_sdk/simple_earn/rest_api/models/
simple_account_response.rs1#![allow(unused_imports)]
15use crate::simple_earn::rest_api::models;
16use serde::{Deserialize, Serialize};
17
18#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
19pub struct SimpleAccountResponse {
20 #[serde(rename = "totalAmountInBTC", skip_serializing_if = "Option::is_none")]
21 pub total_amount_in_btc: Option<String>,
22 #[serde(rename = "totalAmountInUSDT", skip_serializing_if = "Option::is_none")]
23 pub total_amount_in_usdt: Option<String>,
24 #[serde(
25 rename = "totalFlexibleAmountInBTC",
26 skip_serializing_if = "Option::is_none"
27 )]
28 pub total_flexible_amount_in_btc: Option<String>,
29 #[serde(
30 rename = "totalFlexibleAmountInUSDT",
31 skip_serializing_if = "Option::is_none"
32 )]
33 pub total_flexible_amount_in_usdt: Option<String>,
34 #[serde(rename = "totalLockedInBTC", skip_serializing_if = "Option::is_none")]
35 pub total_locked_in_btc: Option<String>,
36 #[serde(rename = "totalLockedInUSDT", skip_serializing_if = "Option::is_none")]
37 pub total_locked_in_usdt: Option<String>,
38}
39
40impl SimpleAccountResponse {
41 #[must_use]
42 pub fn new() -> SimpleAccountResponse {
43 SimpleAccountResponse {
44 total_amount_in_btc: None,
45 total_amount_in_usdt: None,
46 total_flexible_amount_in_btc: None,
47 total_flexible_amount_in_usdt: None,
48 total_locked_in_btc: None,
49 total_locked_in_usdt: None,
50 }
51 }
52}