/*
 * Websocket Subscription Schemas
 *
 * Schema definitions Websocket API subscriptions for Thalex exchange.
 *
 * The version of the OpenAPI document: 1.0.0
 *
 * Generated by: https://openapi-generator.tech
 */

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

///
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum InsertReasonEnum {
    #[serde(rename = "client_request")]
    ClientRequest,
    #[serde(rename = "conditional_order")]
    ConditionalOrder,
    #[serde(rename = "bot")]
    Bot,
    #[serde(rename = "liquidation")]
    Liquidation,
}

impl std::fmt::Display for InsertReasonEnum {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        match self {
            Self::ClientRequest => write!(f, "client_request"),
            Self::ConditionalOrder => write!(f, "conditional_order"),
            Self::Bot => write!(f, "bot"),
            Self::Liquidation => write!(f, "liquidation"),
        }
    }
}

impl Default for InsertReasonEnum {
    fn default() -> InsertReasonEnum {
        Self::ClientRequest
    }
}
