Skip to main content

binance_sdk/stocks/rest_api/models/
tokenized_assets_response_inner.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 TokenizedAssetsResponseInner {
20    /// Tokenized asset code, e.g. `AAPLB`.
21    #[serde(rename = "assetCode", skip_serializing_if = "Option::is_none")]
22    pub asset_code: Option<String>,
23    /// Human-readable display name of the tokenized asset.
24    #[serde(rename = "assetName", skip_serializing_if = "Option::is_none")]
25    pub asset_name: Option<String>,
26    /// Underlying US-equity ticker, e.g. `AAPL`. Use this when calling `/tokenized/mint` or `/tokenized/redeem`.
27    #[serde(
28        rename = "underlyingEquitySymbol",
29        skip_serializing_if = "Option::is_none"
30    )]
31    pub underlying_equity_symbol: Option<String>,
32    /// Conversion multiplier between the underlying equity and the tokenized asset.
33    #[serde(rename = "multiplier", skip_serializing_if = "Option::is_none")]
34    pub multiplier: Option<String>,
35    /// Whether the multiplier is currently valid and applicable.
36    #[serde(rename = "multiplierValid", skip_serializing_if = "Option::is_none")]
37    pub multiplier_valid: Option<bool>,
38}
39
40impl TokenizedAssetsResponseInner {
41    #[must_use]
42    pub fn new() -> TokenizedAssetsResponseInner {
43        TokenizedAssetsResponseInner {
44            asset_code: None,
45            asset_name: None,
46            underlying_equity_symbol: None,
47            multiplier: None,
48            multiplier_valid: None,
49        }
50    }
51}