/*
 * 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 HashrateResaleDetailResponseDataProfitTransferDetailsInner {
    #[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 = "day", skip_serializing_if = "Option::is_none")]
    pub day: Option<i64>,
    #[serde(rename = "amount", skip_serializing_if = "Option::is_none")]
    pub amount: Option<rust_decimal::Decimal>,
    #[serde(rename = "coinName", skip_serializing_if = "Option::is_none")]
    pub coin_name: Option<String>,
}

impl HashrateResaleDetailResponseDataProfitTransferDetailsInner {
    #[must_use]
    pub fn new() -> HashrateResaleDetailResponseDataProfitTransferDetailsInner {
        HashrateResaleDetailResponseDataProfitTransferDetailsInner {
            pool_username: None,
            to_pool_username: None,
            algo_name: None,
            hash_rate: None,
            day: None,
            amount: None,
            coin_name: None,
        }
    }
}
