Skip to main content

binance_sdk/margin_trading/websocket_streams/models/
outbound_account_position.rs

1/*
2 * Margin WebSocket Market Streams
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::websocket_streams::models;
16use serde::{Deserialize, Deserializer, Serialize, de::Error};
17use serde_json::Value;
18
19#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
20pub struct OutboundAccountPosition {
21    /// Event Time
22    #[serde(rename = "E", skip_serializing_if = "Option::is_none")]
23    pub e_uppercase: Option<i64>,
24    /// Time of last account update
25    #[serde(rename = "u", skip_serializing_if = "Option::is_none")]
26    pub u: Option<i64>,
27    /// Balances Array
28    #[serde(rename = "B", skip_serializing_if = "Option::is_none")]
29    pub b_uppercase: Option<Vec<models::OutboundAccountPositionBInner>>,
30}
31
32impl OutboundAccountPosition {
33    #[must_use]
34    pub fn new() -> OutboundAccountPosition {
35        OutboundAccountPosition {
36            e_uppercase: None,
37            u: None,
38            b_uppercase: None,
39        }
40    }
41}