openxapi-binance 0.3.0

Rust client for Binance API
Documentation
/*
 * Binance Portfolio Margin API
 *
 * OpenAPI specification for Binance exchange - Pmargin API
 *
 * The version of the OpenAPI document: 0.3.0
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::pmargin::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
#[serde(untagged)]
pub enum PmarginGetBalanceV1Resp {
    PmarginGetBalanceV1RespList(Vec<models::PmarginGetBalanceV1RespItem>),
    PmarginGetBalanceV1RespItem(Box<models::PmarginGetBalanceV1RespItem>),
}

impl Default for PmarginGetBalanceV1Resp {
    fn default() -> Self {
        Self::PmarginGetBalanceV1RespList(Default::default())
    }
}