/*
 * 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 EarningsListResponseDataAccountProfitsInner {
    #[serde(rename = "time", skip_serializing_if = "Option::is_none")]
    pub time: Option<i64>,
    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
    pub r#type: Option<i64>,
    #[serde(rename = "hashTransfer", skip_serializing_if = "Option::is_none")]
    pub hash_transfer: Option<i64>,
    #[serde(rename = "transferAmount", skip_serializing_if = "Option::is_none")]
    pub transfer_amount: Option<rust_decimal::Decimal>,
    #[serde(rename = "dayHashRate", skip_serializing_if = "Option::is_none")]
    pub day_hash_rate: Option<i64>,
    #[serde(rename = "profitAmount", skip_serializing_if = "Option::is_none")]
    pub profit_amount: Option<rust_decimal::Decimal>,
    #[serde(rename = "coinName", skip_serializing_if = "Option::is_none")]
    pub coin_name: Option<String>,
    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
    pub status: Option<i64>,
}

impl EarningsListResponseDataAccountProfitsInner {
    #[must_use]
    pub fn new() -> EarningsListResponseDataAccountProfitsInner {
        EarningsListResponseDataAccountProfitsInner {
            time: None,
            r#type: None,
            hash_transfer: None,
            transfer_amount: None,
            day_hash_rate: None,
            profit_amount: None,
            coin_name: None,
            status: None,
        }
    }
}
