/*
 * 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 RequestForMinerListResponseDataWorkerDatasInner {
    #[serde(rename = "workerId", skip_serializing_if = "Option::is_none")]
    pub worker_id: Option<String>,
    #[serde(rename = "workerName", skip_serializing_if = "Option::is_none")]
    pub worker_name: Option<String>,
    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
    pub status: Option<i64>,
    #[serde(rename = "hashRate", skip_serializing_if = "Option::is_none")]
    pub hash_rate: Option<i64>,
    #[serde(rename = "dayHashRate", skip_serializing_if = "Option::is_none")]
    pub day_hash_rate: Option<rust_decimal::Decimal>,
    #[serde(rename = "rejectRate", skip_serializing_if = "Option::is_none")]
    pub reject_rate: Option<i64>,
    #[serde(rename = "lastShareTime", skip_serializing_if = "Option::is_none")]
    pub last_share_time: Option<i64>,
}

impl RequestForMinerListResponseDataWorkerDatasInner {
    #[must_use]
    pub fn new() -> RequestForMinerListResponseDataWorkerDatasInner {
        RequestForMinerListResponseDataWorkerDatasInner {
            worker_id: None,
            worker_name: None,
            status: None,
            hash_rate: None,
            day_hash_rate: None,
            reject_rate: None,
            last_share_time: None,
        }
    }
}
