binance_sdk/staking/rest_api/models/
eth_staking_account_response_profit.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 EthStakingAccountResponseProfit {
20 #[serde(rename = "amountFromWBETH", skip_serializing_if = "Option::is_none")]
21 pub amount_from_wbeth: Option<String>,
22 #[serde(rename = "amountFromBETH", skip_serializing_if = "Option::is_none")]
23 pub amount_from_beth: Option<String>,
24}
25
26impl EthStakingAccountResponseProfit {
27 #[must_use]
28 pub fn new() -> EthStakingAccountResponseProfit {
29 EthStakingAccountResponseProfit {
30 amount_from_wbeth: None,
31 amount_from_beth: None,
32 }
33 }
34}