binance-sdk 70.1.1

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};

/// `TokenizedConvertStatusResponse` : Empty object `{}` when no record matches.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct TokenizedConvertStatusResponse {
    /// Underlying US-equity ticker, e.g. `AAPL`.
    #[serde(rename = "underlyingAsset", skip_serializing_if = "Option::is_none")]
    pub underlying_asset: Option<String>,
    /// Quantity of the underlying asset involved.
    #[serde(
        rename = "underlyingAssetAmount",
        skip_serializing_if = "Option::is_none"
    )]
    pub underlying_asset_amount: Option<String>,
    /// Tokenized asset, e.g. `AAPLB`.
    #[serde(rename = "tokenizedAsset", skip_serializing_if = "Option::is_none")]
    pub tokenized_asset: Option<String>,
    /// Quantity of the tokenized asset involved.
    #[serde(
        rename = "tokenizedAssetAmount",
        skip_serializing_if = "Option::is_none"
    )]
    pub tokenized_asset_amount: Option<String>,
    /// Echoes the requested id.
    #[serde(rename = "issuerRequestId", skip_serializing_if = "Option::is_none")]
    pub issuer_request_id: Option<String>,
    /// `MINT` or `REDEEM`.
    #[serde(rename = "convertType", skip_serializing_if = "Option::is_none")]
    pub convert_type: Option<String>,
    /// Convert status: `P` = processing, `S` = success, `F` = failed.
    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
    pub status: Option<String>,
    /// Creation time (ms epoch).
    #[serde(rename = "createdAt", skip_serializing_if = "Option::is_none")]
    pub created_at: Option<i64>,
    /// Last update time (ms epoch).
    #[serde(rename = "updatedAt", skip_serializing_if = "Option::is_none")]
    pub updated_at: Option<i64>,
}

impl TokenizedConvertStatusResponse {
    /// Empty object `{}` when no record matches.
    #[must_use]
    pub fn new() -> TokenizedConvertStatusResponse {
        TokenizedConvertStatusResponse {
            underlying_asset: None,
            underlying_asset_amount: None,
            tokenized_asset: None,
            tokenized_asset_amount: None,
            issuer_request_id: None,
            convert_type: None,
            status: None,
            created_at: None,
            updated_at: None,
        }
    }
}