pub struct APIKeyPermissions {
pub contract_trade: Vec<String>,
pub spot: Vec<String>,
pub wallet: Vec<String>,
pub options: Vec<String>,
pub derivatives: Vec<String>,
pub exchange: Vec<String>,
pub earn: Vec<String>,
pub block_trade: Vec<String>,
pub affiliate: Vec<String>,
pub copy_trading: Vec<String>,
}Fields§
§contract_trade: Vec<String>Permission of contract trade Order, Position
spot: Vec<String>Permission of spot SpotTrade
wallet: Vec<String>Permission of wallet AccountTransfer, SubMemberTransfer(master account), SubMemberTransferList(sub account), Withdraw(master account)
options: Vec<String>Permission of USDC Contract. It supports trade option and USDC perpetual. OptionsTrade
derivatives: Vec<String>Unified account has this permission by default DerivativesTrade For classic account, it is always []
exchange: Vec<String>Permission of convert ExchangeHistory
earn: Vec<String>Permission of earn product Earn
block_trade: Vec<String>Permission of blocktrade. Not applicable to subaccount, always []
affiliate: Vec<String>Permission of Affiliate. Only affiliate can have this permission, otherwise always []
copy_trading: Vec<String>Always [] as Master Trader account just use ContractTrade to start CopyTrading
Trait Implementations§
Source§impl Debug for APIKeyPermissions
impl Debug for APIKeyPermissions
Source§impl<'de> Deserialize<'de> for APIKeyPermissions
impl<'de> Deserialize<'de> for APIKeyPermissions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for APIKeyPermissions
impl PartialEq for APIKeyPermissions
Source§fn eq(&self, other: &APIKeyPermissions) -> bool
fn eq(&self, other: &APIKeyPermissions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for APIKeyPermissions
Auto Trait Implementations§
impl Freeze for APIKeyPermissions
impl RefUnwindSafe for APIKeyPermissions
impl Send for APIKeyPermissions
impl Sync for APIKeyPermissions
impl Unpin for APIKeyPermissions
impl UnsafeUnpin for APIKeyPermissions
impl UnwindSafe for APIKeyPermissions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more