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

/// GetAccountValueHistoryParamsInterval : Time interval for the value history.
/// Time interval for the value history.
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum GetAccountValueHistoryParamsInterval {
    #[serde(rename = "24h")]
    Variant24h,
    #[serde(rename = "7d")]
    Variant7d,
    #[serde(rename = "30d")]
    Variant30d,
    #[serde(rename = "90d")]
    Variant90d,
    #[serde(rename = "all")]
    All,

}

impl std::fmt::Display for GetAccountValueHistoryParamsInterval {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        match self {
            Self::Variant24h => write!(f, "24h"),
            Self::Variant7d => write!(f, "7d"),
            Self::Variant30d => write!(f, "30d"),
            Self::Variant90d => write!(f, "90d"),
            Self::All => write!(f, "all"),
        }
    }
}

impl Default for GetAccountValueHistoryParamsInterval {
    fn default() -> GetAccountValueHistoryParamsInterval {
        Self::Variant24h
    }
}