binance-sdk 70.0.0

This is a lightweight library that works as a connector to the Binance public API.
Documentation
/*
 * Stocks Trading REST API
 *
 * REST APIs for Binance Stocks Trading. All endpoints under `/sapi/v1/equity/_*`.
 *
 * 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::stocks::rest_api::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct EquityTradeHistoryResponse {
    /// Total number of rows matching the filter.
    #[serde(rename = "total", skip_serializing_if = "Option::is_none")]
    pub total: Option<i64>,
    /// Current page.
    #[serde(rename = "page", skip_serializing_if = "Option::is_none")]
    pub page: Option<i32>,
    /// Current page size.
    #[serde(rename = "size", skip_serializing_if = "Option::is_none")]
    pub size: Option<i32>,
    /// Trade rows on this page. Empty when nothing matches.
    #[serde(rename = "rows", skip_serializing_if = "Option::is_none")]
    pub rows: Option<Vec<models::EquityTradeHistoryResponseRowsInner>>,
}

impl EquityTradeHistoryResponse {
    #[must_use]
    pub fn new() -> EquityTradeHistoryResponse {
        EquityTradeHistoryResponse {
            total: None,
            page: None,
            size: None,
            rows: None,
        }
    }
}