Skip to main content

binance_sdk/margin_trading/rest_api/models/
create_special_key_response.rs

1/*
2 * Margin REST API
3 *
4 * Access account information, borrow and repay assets, and trade with Binance Margin.
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::margin_trading::rest_api::models;
16use serde::{Deserialize, Serialize};
17
18#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
19pub struct CreateSpecialKeyResponse {
20    /// api Key.
21    #[serde(rename = "apiKey", skip_serializing_if = "Option::is_none")]
22    pub api_key: Option<String>,
23    /// secretKey will be null when creating an RSA key
24    #[serde(rename = "secretKey", skip_serializing_if = "Option::is_none")]
25    pub secret_key: Option<String>,
26    /// `HMAC_SHA256` or RSA
27    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
28    pub r#type: Option<String>,
29}
30
31impl CreateSpecialKeyResponse {
32    #[must_use]
33    pub fn new() -> CreateSpecialKeyResponse {
34        CreateSpecialKeyResponse {
35            api_key: None,
36            secret_key: None,
37            r#type: None,
38        }
39    }
40}