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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetFlexibleLoanBorrowHistoryResponseRowsInner {
    #[serde(rename = "loanCoin", skip_serializing_if = "Option::is_none")]
    pub loan_coin: Option<String>,
    #[serde(rename = "initialLoanAmount", skip_serializing_if = "Option::is_none")]
    pub initial_loan_amount: Option<String>,
    #[serde(rename = "collateralCoin", skip_serializing_if = "Option::is_none")]
    pub collateral_coin: Option<String>,
    #[serde(
        rename = "initialCollateralAmount",
        skip_serializing_if = "Option::is_none"
    )]
    pub initial_collateral_amount: Option<String>,
    #[serde(rename = "borrowTime", skip_serializing_if = "Option::is_none")]
    pub borrow_time: Option<i64>,
    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
    pub status: Option<String>,
}

impl GetFlexibleLoanBorrowHistoryResponseRowsInner {
    #[must_use]
    pub fn new() -> GetFlexibleLoanBorrowHistoryResponseRowsInner {
        GetFlexibleLoanBorrowHistoryResponseRowsInner {
            loan_coin: None,
            initial_loan_amount: None,
            collateral_coin: None,
            initial_collateral_amount: None,
            borrow_time: None,
            status: None,
        }
    }
}
