Skip to main content

binance_sdk/stocks/rest_api/models/
tokenized_convert_history_response.rs

1/*
2 * Stocks Trading REST API
3 *
4 * REST APIs for Binance Stocks Trading. All endpoints under `/sapi/v1/equity/_*`.
5 *
6 * The version of the OpenAPI document: 1.0.0
7 *
8 *
9 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10 * https://openapi-generator.tech
11 * Do not edit the class manually.
12 */
13
14#![allow(unused_imports)]
15use crate::stocks::rest_api::models;
16use serde::{Deserialize, Serialize};
17
18#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
19pub struct TokenizedConvertHistoryResponse {
20    /// Convert history rows on this page. Empty array if nothing matches.
21    #[serde(rename = "rows", skip_serializing_if = "Option::is_none")]
22    pub rows: Option<Vec<models::TokenizedConvertHistoryResponseRowsInner>>,
23    /// `true` when more pages exist — pass `nextLastId` as `lastId` on the next request.
24    #[serde(rename = "hasMore", skip_serializing_if = "Option::is_none")]
25    pub has_more: Option<bool>,
26    /// Pass this value as `lastId` on the next request to get the following page.
27    #[serde(rename = "nextLastId", skip_serializing_if = "Option::is_none")]
28    pub next_last_id: Option<i64>,
29}
30
31impl TokenizedConvertHistoryResponse {
32    #[must_use]
33    pub fn new() -> TokenizedConvertHistoryResponse {
34        TokenizedConvertHistoryResponse {
35            rows: None,
36            has_more: None,
37            next_last_id: None,
38        }
39    }
40}