/*
 * 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};

///
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum CategoryEnum {
    #[serde(rename = "options")]
    Options,
    #[serde(rename = "futures")]
    Futures,
    #[serde(rename = "perpetual")]
    Perpetual,
}

impl std::fmt::Display for CategoryEnum {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        match self {
            Self::Options => write!(f, "options"),
            Self::Futures => write!(f, "futures"),
            Self::Perpetual => write!(f, "perpetual"),
        }
    }
}

impl Default for CategoryEnum {
    fn default() -> CategoryEnum {
        Self::Options
    }
}
