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