use std::fmt::{Display, Formatter, Result};
use serde::{Deserialize, Serialize};
#[derive(Debug, Serialize, Deserialize, PartialEq)]
pub enum MarginTrading {
#[serde(rename = "none")]
None, #[serde(rename = "both")]
Both, #[serde(rename = "utaOnly")]
UtaOnly, #[serde(rename = "normalSpotOnly")]
NormalSpotOnly, }
impl Display for MarginTrading {
fn fmt(&self, f: &mut Formatter) -> Result {
match self {
MarginTrading::None => write!(f, "none"),
MarginTrading::Both => write!(f, "both"),
MarginTrading::UtaOnly => write!(f, "utaOnly"),
MarginTrading::NormalSpotOnly => write!(f, "normalSpotOnly"),
}
}
}