openxapi-binance 0.3.0

Rust client for Binance API
Documentation
/*
 * Binance Spot API
 *
 * OpenAPI specification for Binance exchange - Spot API
 *
 * The version of the OpenAPI document: 0.3.0
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::spot::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CreateEthStakingEthStakeV2Resp {
    #[serde(rename = "conversionRatio", skip_serializing_if = "Option::is_none")]
    pub conversion_ratio: Option<String>,
    #[serde(rename = "success", skip_serializing_if = "Option::is_none")]
    pub success: Option<bool>,
    #[serde(rename = "wbethAmount", skip_serializing_if = "Option::is_none")]
    pub wbeth_amount: Option<String>,
}

impl CreateEthStakingEthStakeV2Resp {
    pub fn new() -> CreateEthStakingEthStakeV2Resp {
        CreateEthStakingEthStakeV2Resp {
            conversion_ratio: None,
            success: None,
            wbeth_amount: None,
        }
    }
}