binance_client/http_api_v3/data/permission.rs
1//!
2//! The exchange info symbol permission.
3//!
4
5use serde::Deserialize;
6
7///
8/// The trading method allowed for the symbol.
9///
10#[derive(Debug, Deserialize, Clone, Copy, PartialEq, Eq, Hash)]
11#[serde(rename_all = "SCREAMING_SNAKE_CASE")]
12pub enum Permission {
13 /// The spot trading.
14 Spot,
15 /// The margin trading.
16 Margin,
17 /// Fallback for all other variants.
18 #[serde(other)]
19 Other,
20}