Skip to main content

binance_sdk/simple_earn/rest_api/models/
simple_account_response.rs

1/*
2 * Binance Simple Earn REST API
3 *
4 * OpenAPI Specification for the Binance Simple Earn REST API
5 *
6 * The version of the OpenAPI document: 1.0.0
7 *
8 *
9 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10 * https://openapi-generator.tech
11 * Do not edit the class manually.
12 */
13
14#![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}