/*
 * Thalex RPC API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.0.0
 *
 * Generated by: https://openapi-generator.tech
 */

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

/// TransactionHistoryRpcResultTransactionsInnerStructuredData : Structured data specific to `transaction_type`.  Note that not all transaction types carry structured data at the moment. Structured data can also be missing for very old transactions.
/// Structured data specific to `transaction_type`.  Note that not all transaction types carry structured data at the moment. Structured data can also be missing for very old transactions.
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
#[serde(untagged)]
pub enum TransactionHistoryRpcResultTransactionsInnerStructuredData {
    SessionSettlement(models::SessionSettlement),
    PerpetualFunding(models::PerpetualFunding),
    BalanceSweep(models::BalanceSweep),
}

impl Default for TransactionHistoryRpcResultTransactionsInnerStructuredData {
    fn default() -> Self {
        Self::SessionSettlement(Default::default())
    }
}
