binance-sdk 61.0.0

This is a lightweight library that works as a connector to the Binance public API.
Documentation
/*
 * Margin REST API
 *
 * Access account information, borrow and repay assets, and trade with Binance Margin.
 *
 * 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::margin_trading::rest_api::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct QueryLiquidationLoanResponse {
    /// The asset of the liquidation loan (USDC by default)
    #[serde(rename = "asset", skip_serializing_if = "Option::is_none")]
    pub asset: Option<String>,
    /// Total liquidation loan amount
    #[serde(rename = "amount", skip_serializing_if = "Option::is_none")]
    pub amount: Option<String>,
    /// Amount that has been repaid
    #[serde(rename = "repaidAmount", skip_serializing_if = "Option::is_none")]
    pub repaid_amount: Option<String>,
    /// Outstanding amount remaining to be repaid
    #[serde(rename = "remainingAmount", skip_serializing_if = "Option::is_none")]
    pub remaining_amount: Option<String>,
}

impl QueryLiquidationLoanResponse {
    #[must_use]
    pub fn new() -> QueryLiquidationLoanResponse {
        QueryLiquidationLoanResponse {
            asset: None,
            amount: None,
            repaid_amount: None,
            remaining_amount: None,
        }
    }
}