Skip to main content

binance_sdk/staking/rest_api/models/
subscribe_eth_staking_response.rs

1/*
2 * Binance Staking REST API
3 *
4 * OpenAPI Specification for the Binance Staking 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::staking::rest_api::models;
16use serde::{Deserialize, Serialize};
17
18#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
19pub struct SubscribeEthStakingResponse {
20    #[serde(rename = "success", skip_serializing_if = "Option::is_none")]
21    pub success: Option<bool>,
22    #[serde(rename = "wbethAmount", skip_serializing_if = "Option::is_none")]
23    pub wbeth_amount: Option<String>,
24    #[serde(rename = "conversionRatio", skip_serializing_if = "Option::is_none")]
25    pub conversion_ratio: Option<String>,
26    #[serde(rename = "purchaseId", skip_serializing_if = "Option::is_none")]
27    pub purchase_id: Option<i64>,
28}
29
30impl SubscribeEthStakingResponse {
31    #[must_use]
32    pub fn new() -> SubscribeEthStakingResponse {
33        SubscribeEthStakingResponse {
34            success: None,
35            wbeth_amount: None,
36            conversion_ratio: None,
37            purchase_id: None,
38        }
39    }
40}