binance_sdk/staking/rest_api/models/
sol_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 SolStakingAccountResponse {
20 #[serde(rename = "bnsolAmount", skip_serializing_if = "Option::is_none")]
21 pub bnsol_amount: Option<String>,
22 #[serde(rename = "holdingInSOL", skip_serializing_if = "Option::is_none")]
23 pub holding_in_sol: Option<String>,
24 #[serde(
25 rename = "thirtyDaysProfitInSOL",
26 skip_serializing_if = "Option::is_none"
27 )]
28 pub thirty_days_profit_in_sol: Option<String>,
29}
30
31impl SolStakingAccountResponse {
32 #[must_use]
33 pub fn new() -> SolStakingAccountResponse {
34 SolStakingAccountResponse {
35 bnsol_amount: None,
36 holding_in_sol: None,
37 thirty_days_profit_in_sol: None,
38 }
39 }
40}