#[repr(i32)]pub enum AssetCode {
Show 27 variants
InsufficientBalance = 140_001,
InvalidCoin = 140_002,
InvalidAmount = 140_003,
TransferFailed = 140_004,
WithdrawalFailed = 140_005,
DepositFailed = 140_006,
CoinNotExist = 140_007,
InvalidWithdrawalAddress = 140_008,
WithdrawalDisabled = 140_009,
DepositDisabled = 140_010,
TransferDisabled = 140_011,
WithdrawalAmountTooSmall = 140_012,
WithdrawalAmountTooLarge = 140_013,
WithdrawalFeeTooHigh = 140_014,
WithdrawalAddressNotWhitelisted = 140_015,
WithdrawalAddressNotSupported = 140_016,
InternalTransferNotAllowed = 140_017,
WithdrawalNotAllowed = 140_018,
DepositNotAllowed = 140_019,
SubAccountTransferDisabled = 140_020,
MasterAccountTransferDisabled = 140_021,
InvalidChainType = 140_022,
WithdrawalAddressWrongChain = 140_023,
WithdrawalNotSupported = 140_024,
DepositNotSupported = 140_025,
TransferAmountTooSmall = 140_026,
TransferAmountTooLarge = 140_027,
}Expand description
Enum representing Bybit API V5 Asset return error/codes.
See: https://bybit-exchange.github.io/docs/v5/error#asset
Variants§
InsufficientBalance = 140_001
Insufficient balance in account.
InvalidCoin = 140_002
Invalid coin.
InvalidAmount = 140_003
Invalid amount.
TransferFailed = 140_004
Transfer failed.
WithdrawalFailed = 140_005
Withdrawal failed.
DepositFailed = 140_006
Deposit failed.
CoinNotExist = 140_007
Coin does not exist.
InvalidWithdrawalAddress = 140_008
Withdrawal address is invalid.
WithdrawalDisabled = 140_009
Withdrawal is disabled.
DepositDisabled = 140_010
Deposit is disabled.
TransferDisabled = 140_011
Transfer is disabled.
WithdrawalAmountTooSmall = 140_012
Withdrawal amount is too small.
WithdrawalAmountTooLarge = 140_013
Withdrawal amount is too large.
WithdrawalFeeTooHigh = 140_014
Withdrawal fee is too high.
WithdrawalAddressNotWhitelisted = 140_015
Withdrawal address is not in whitelist.
WithdrawalAddressNotSupported = 140_016
Withdrawal address is not supported.
InternalTransferNotAllowed = 140_017
Internal transfer is not allowed for this coin.
WithdrawalNotAllowed = 140_018
Withdrawal is not allowed for this account.
DepositNotAllowed = 140_019
Deposit is not allowed for this account.
SubAccountTransferDisabled = 140_020
Sub-account transfer is disabled.
MasterAccountTransferDisabled = 140_021
Master account transfer is disabled.
InvalidChainType = 140_022
Invalid chain type.
WithdrawalAddressWrongChain = 140_023
Withdrawal address is not on the selected chain.
WithdrawalNotSupported = 140_024
Withdrawal is not supported for this coin.
DepositNotSupported = 140_025
Deposit is not supported for this coin.
TransferAmountTooSmall = 140_026
Transfer amount is too small.
TransferAmountTooLarge = 140_027
Transfer amount is too large.
Implementations§
Trait Implementations§
Source§impl From<AssetCode> for ReturnCode
impl From<AssetCode> for ReturnCode
impl Copy for AssetCode
impl Eq for AssetCode
impl StructuralPartialEq for AssetCode
Auto Trait Implementations§
impl Freeze for AssetCode
impl RefUnwindSafe for AssetCode
impl Send for AssetCode
impl Sync for AssetCode
impl Unpin for AssetCode
impl UnsafeUnpin for AssetCode
impl UnwindSafe for AssetCode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.