/*
 * 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 StatisticListResponseData {
    #[serde(rename = "fifteenMinHashRate", skip_serializing_if = "Option::is_none")]
    pub fifteen_min_hash_rate: Option<String>,
    #[serde(rename = "dayHashRate", skip_serializing_if = "Option::is_none")]
    pub day_hash_rate: Option<String>,
    #[serde(rename = "validNum", skip_serializing_if = "Option::is_none")]
    pub valid_num: Option<i64>,
    #[serde(rename = "invalidNum", skip_serializing_if = "Option::is_none")]
    pub invalid_num: Option<i64>,
    #[serde(rename = "profitToday", skip_serializing_if = "Option::is_none")]
    pub profit_today: Option<Box<models::StatisticListResponseDataProfitToday>>,
    #[serde(rename = "profitYesterday", skip_serializing_if = "Option::is_none")]
    pub profit_yesterday: Option<Box<models::StatisticListResponseDataProfitToday>>,
    #[serde(rename = "userName", skip_serializing_if = "Option::is_none")]
    pub user_name: Option<String>,
    #[serde(rename = "unit", skip_serializing_if = "Option::is_none")]
    pub unit: Option<String>,
    #[serde(rename = "algo", skip_serializing_if = "Option::is_none")]
    pub algo: Option<String>,
}

impl StatisticListResponseData {
    #[must_use]
    pub fn new() -> StatisticListResponseData {
        StatisticListResponseData {
            fifteen_min_hash_rate: None,
            day_hash_rate: None,
            valid_num: None,
            invalid_num: None,
            profit_today: None,
            profit_yesterday: None,
            user_name: None,
            unit: None,
            algo: None,
        }
    }
}
