pub enum TransferType {
Show 16 variants
MainToUmFuture,
UmFutureToMain,
MainToCmFuture,
CmFutureToMain,
MainToMargin,
MarginToMain,
MainToIsolatedMargin,
IsolatedMarginToMain,
MainToFunding,
FundingToMain,
UmFutureToFunding,
FundingToUmFuture,
MarginToFunding,
FundingToMargin,
MainToOption,
OptionToMain,
}Expand description
Transfer type for inter-account transfers.
Supported transfer types between different Binance account types.
Variants§
MainToUmFuture
Spot account to USDⓈ-M futures account.
UmFutureToMain
USDⓈ-M futures account to spot account.
MainToCmFuture
Spot account to COIN-M futures account.
CmFutureToMain
COIN-M futures account to spot account.
MainToMargin
Spot account to cross margin account.
MarginToMain
Cross margin account to spot account.
MainToIsolatedMargin
Spot account to isolated margin account.
IsolatedMarginToMain
Isolated margin account to spot account.
MainToFunding
Spot account to funding account.
FundingToMain
Funding account to spot account.
UmFutureToFunding
USDⓈ-M futures account to funding account.
FundingToUmFuture
Funding account to USDⓈ-M futures account.
MarginToFunding
Cross margin account to funding account.
FundingToMargin
Funding account to cross margin account.
MainToOption
Spot account to options account.
OptionToMain
Options account to spot account.
Implementations§
Source§impl TransferType
impl TransferType
Sourcepub fn from_accounts(from: &str, to: &str) -> Option<TransferType>
pub fn from_accounts(from: &str, to: &str) -> Option<TransferType>
Parses transfer type from account type strings.
Trait Implementations§
Source§impl Clone for TransferType
impl Clone for TransferType
Source§fn clone(&self) -> TransferType
fn clone(&self) -> TransferType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more