pub enum AccountType {
Spot,
Margin,
FuturesCross,
FuturesIsolated,
Earn,
Lending,
Options,
Convert,
}Expand description
Тип аккаунта/рынка
Variants§
Spot
Спотовая торговля
Margin
Маржинальная торговля
FuturesCross
Фьючерсы с кросс-маржой
FuturesIsolated
Фьючерсы с изолированной маржой
Earn
Earn / savings / staking account.
~8/24: Binance, Bybit, OKX, KuCoin, GateIO, HTX, MEXC, Bitget.
Lending
Lending / margin lending account.
~6/24: Binance, Bybit, OKX, KuCoin, GateIO, Bitfinex.
Options
Options account.
~5/24: Binance, Bybit, OKX, Deribit, KuCoin.
Convert
Convert / swap sub-account (instant conversion without order book).
~7/24: Binance, Bybit, OKX, KuCoin, GateIO, HTX, CryptoCom.
Implementations§
Source§impl AccountType
impl AccountType
Sourcepub fn short_label(&self) -> &'static str
pub fn short_label(&self) -> &'static str
Short display label for UI use.
Sourcepub fn as_key_str(&self) -> &'static str
pub fn as_key_str(&self) -> &'static str
Stable lowercase key string for serialization keys and map lookups.
Trait Implementations§
Source§impl Clone for AccountType
impl Clone for AccountType
Source§fn clone(&self) -> AccountType
fn clone(&self) -> AccountType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AccountType
Source§impl Debug for AccountType
impl Debug for AccountType
Source§impl Default for AccountType
impl Default for AccountType
Source§fn default() -> AccountType
fn default() -> AccountType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AccountType
impl<'de> Deserialize<'de> for AccountType
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AccountType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AccountType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AccountType
Source§impl Hash for AccountType
impl Hash for AccountType
Source§impl PartialEq for AccountType
impl PartialEq for AccountType
Source§fn eq(&self, other: &AccountType) -> bool
fn eq(&self, other: &AccountType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AccountType
impl Serialize for AccountType
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for AccountType
Auto Trait Implementations§
impl Freeze for AccountType
impl RefUnwindSafe for AccountType
impl Send for AccountType
impl Sync for AccountType
impl Unpin for AccountType
impl UnsafeUnpin for AccountType
impl UnwindSafe for AccountType
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