/*
 * Binance Staking REST API
 *
 * OpenAPI Specification for the Binance Staking 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::staking::rest_api::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetOnChainYieldsLockedProductListResponseRowsInnerDetail {
    #[serde(rename = "asset", skip_serializing_if = "Option::is_none")]
    pub asset: Option<String>,
    #[serde(rename = "rewardAsset", skip_serializing_if = "Option::is_none")]
    pub reward_asset: Option<String>,
    #[serde(rename = "duration", skip_serializing_if = "Option::is_none")]
    pub duration: Option<i64>,
    #[serde(rename = "renewable", skip_serializing_if = "Option::is_none")]
    pub renewable: Option<bool>,
    #[serde(rename = "isSoldOut", skip_serializing_if = "Option::is_none")]
    pub is_sold_out: Option<bool>,
    #[serde(rename = "apr", skip_serializing_if = "Option::is_none")]
    pub apr: Option<String>,
    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
    pub status: Option<String>,
    #[serde(
        rename = "subscriptionStartTime",
        skip_serializing_if = "Option::is_none"
    )]
    pub subscription_start_time: Option<i64>,
    #[serde(rename = "canRedeemToFlex", skip_serializing_if = "Option::is_none")]
    pub can_redeem_to_flex: Option<bool>,
}

impl GetOnChainYieldsLockedProductListResponseRowsInnerDetail {
    #[must_use]
    pub fn new() -> GetOnChainYieldsLockedProductListResponseRowsInnerDetail {
        GetOnChainYieldsLockedProductListResponseRowsInnerDetail {
            asset: None,
            reward_asset: None,
            duration: None,
            renewable: None,
            is_sold_out: None,
            apr: None,
            status: None,
            subscription_start_time: None,
            can_redeem_to_flex: None,
        }
    }
}
