bluefin_api 1.8.0

Bluefin API
Documentation
/*
 * Bluefin API
 *
 * Bluefin API
 *
 * The version of the OpenAPI document: 1.0.0
 * 
 * Generated by: https://openapi-generator.tech
 */

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

/// AccountStreamMessagePayload : The payload of the message, which varies based on the event type.
/// The payload of the message, which varies based on the event type.
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
#[serde(untagged)]
pub enum AccountStreamMessagePayload {
    AccountUpdate(models::AccountUpdate),
    AccountTradeUpdate(models::AccountTradeUpdate),
    AccountAggregatedTradeUpdate(models::AccountAggregatedTradeUpdate),
    AccountOrderUpdate(models::AccountOrderUpdate),
    AccountTransactionUpdate(models::AccountTransactionUpdate),
    AccountPositionUpdate(models::AccountPositionUpdate),
    AccountCommandFailureUpdate(models::AccountCommandFailureUpdate),
}

impl Default for AccountStreamMessagePayload {
    fn default() -> Self {
        Self::AccountUpdate(Default::default())
    }
}