binance_sdk/staking/rest_api/models/
eth_staking_account_response.rs1#![allow(unused_imports)]
15use crate::staking::rest_api::models;
16use serde::{Deserialize, Serialize};
17
18#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
19pub struct EthStakingAccountResponse {
20 #[serde(rename = "holdingInETH", skip_serializing_if = "Option::is_none")]
21 pub holding_in_eth: Option<String>,
22 #[serde(rename = "holdings", skip_serializing_if = "Option::is_none")]
23 pub holdings: Option<Box<models::EthStakingAccountResponseHoldings>>,
24 #[serde(
25 rename = "thirtyDaysProfitInETH",
26 skip_serializing_if = "Option::is_none"
27 )]
28 pub thirty_days_profit_in_eth: Option<String>,
29 #[serde(rename = "profit", skip_serializing_if = "Option::is_none")]
30 pub profit: Option<Box<models::EthStakingAccountResponseProfit>>,
31}
32
33impl EthStakingAccountResponse {
34 #[must_use]
35 pub fn new() -> EthStakingAccountResponse {
36 EthStakingAccountResponse {
37 holding_in_eth: None,
38 holdings: None,
39 thirty_days_profit_in_eth: None,
40 profit: None,
41 }
42 }
43}