/*
 * Binance Mining REST API
 *
 * OpenAPI Specification for the Binance Mining REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

#![allow(unused_imports)]
use crate::mining::rest_api::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct MiningAccountEarningResponseDataAccountProfitsInner {
    #[serde(rename = "time", skip_serializing_if = "Option::is_none")]
    pub time: Option<i64>,
    #[serde(rename = "coinName", skip_serializing_if = "Option::is_none")]
    pub coin_name: Option<String>,
    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
    pub r#type: Option<i64>,
    #[serde(rename = "puid", skip_serializing_if = "Option::is_none")]
    pub puid: Option<i64>,
    #[serde(rename = "subName", skip_serializing_if = "Option::is_none")]
    pub sub_name: Option<String>,
    #[serde(rename = "amount", skip_serializing_if = "Option::is_none")]
    pub amount: Option<rust_decimal::Decimal>,
}

impl MiningAccountEarningResponseDataAccountProfitsInner {
    #[must_use]
    pub fn new() -> MiningAccountEarningResponseDataAccountProfitsInner {
        MiningAccountEarningResponseDataAccountProfitsInner {
            time: None,
            coin_name: None,
            r#type: None,
            puid: None,
            sub_name: None,
            amount: None,
        }
    }
}
