/*
 * 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 HashrateResaleListResponseDataConfigDetailsInner {
    #[serde(rename = "configId", skip_serializing_if = "Option::is_none")]
    pub config_id: Option<i64>,
    #[serde(rename = "poolUsername", skip_serializing_if = "Option::is_none")]
    pub pool_username: Option<String>,
    #[serde(rename = "toPoolUsername", skip_serializing_if = "Option::is_none")]
    pub to_pool_username: Option<String>,
    #[serde(rename = "algoName", skip_serializing_if = "Option::is_none")]
    pub algo_name: Option<String>,
    #[serde(rename = "hashRate", skip_serializing_if = "Option::is_none")]
    pub hash_rate: Option<i64>,
    #[serde(rename = "startDay", skip_serializing_if = "Option::is_none")]
    pub start_day: Option<i64>,
    #[serde(rename = "endDay", skip_serializing_if = "Option::is_none")]
    pub end_day: Option<i64>,
    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
    pub status: Option<i64>,
    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
    pub r#type: Option<i64>,
}

impl HashrateResaleListResponseDataConfigDetailsInner {
    #[must_use]
    pub fn new() -> HashrateResaleListResponseDataConfigDetailsInner {
        HashrateResaleListResponseDataConfigDetailsInner {
            config_id: None,
            pool_username: None,
            to_pool_username: None,
            algo_name: None,
            hash_rate: None,
            start_day: None,
            end_day: None,
            status: None,
            r#type: None,
        }
    }
}
