Skip to main content

binance_sdk/margin_trading/rest_api/models/
query_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 QuerySpecialKeyResponse {
20    /// api Key.
21    #[serde(rename = "apiKey", skip_serializing_if = "Option::is_none")]
22    pub api_key: Option<String>,
23    /// 0.0.0.0 is just an initial statereference (no extra meaning).
24    #[serde(rename = "ip", skip_serializing_if = "Option::is_none")]
25    pub ip: Option<String>,
26    /// api Name.
27    #[serde(rename = "apiName", skip_serializing_if = "Option::is_none")]
28    pub api_name: Option<String>,
29    /// type.
30    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
31    pub r#type: Option<String>,
32    /// permission Mode.
33    #[serde(rename = "permissionMode", skip_serializing_if = "Option::is_none")]
34    pub permission_mode: Option<String>,
35}
36
37impl QuerySpecialKeyResponse {
38    #[must_use]
39    pub fn new() -> QuerySpecialKeyResponse {
40        QuerySpecialKeyResponse {
41            api_key: None,
42            ip: None,
43            api_name: None,
44            r#type: None,
45            permission_mode: None,
46        }
47    }
48}