bybit_rust_api/rest/enums/
copy_trading.rs1use std::fmt::{Display, Formatter, Result};
2
3use serde::{Deserialize, Serialize};
4
5#[derive(Debug, Serialize, Deserialize, PartialEq)]
6pub enum CopyTrading {
7 #[serde(rename = "none")]
8 None, #[serde(rename = "both")]
10 Both, #[serde(rename = "utaOnly")]
12 UtaOnly, #[serde(rename = "normalSpotOnly")]
14 NormalSpotOnly, }
16
17impl Display for CopyTrading {
18 fn fmt(&self, f: &mut Formatter) -> Result {
19 match self {
20 CopyTrading::None => write!(f, "none"),
21 CopyTrading::Both => write!(f, "both"),
22 CopyTrading::UtaOnly => write!(f, "utaOnly"),
23 CopyTrading::NormalSpotOnly => write!(f, "normalSpotOnly"),
24 }
25 }
26}