#[repr(i32)]pub enum CryptoLoanCode {
CryptoLoanNotSupported = 150_001,
InsufficientBalance = 150_002,
InvalidLoanAmount = 150_003,
LoanFailed = 150_004,
RepayFailed = 150_005,
InvalidRepayAmount = 150_006,
CryptoLoanDisabled = 150_007,
LoanOrderNotExist = 150_008,
}Expand description
Enum representing Bybit API V5 Crypto Loan return error/codes.
See: https://bybit-exchange.github.io/docs/v5/error#crypto-loan
Variants§
CryptoLoanNotSupported = 150_001
Crypto loan is not supported.
InsufficientBalance = 150_002
Insufficient balance in account.
InvalidLoanAmount = 150_003
Invalid loan amount.
LoanFailed = 150_004
Loan failed.
RepayFailed = 150_005
Repay failed.
InvalidRepayAmount = 150_006
Invalid repay amount.
CryptoLoanDisabled = 150_007
Crypto loan is disabled for this account.
LoanOrderNotExist = 150_008
Crypto loan order does not exist.
Implementations§
Trait Implementations§
Source§impl Clone for CryptoLoanCode
impl Clone for CryptoLoanCode
Source§fn clone(&self) -> CryptoLoanCode
fn clone(&self) -> CryptoLoanCode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CryptoLoanCode
impl Debug for CryptoLoanCode
Source§impl Display for CryptoLoanCode
impl Display for CryptoLoanCode
Source§impl From<CryptoLoanCode> for ReturnCode
impl From<CryptoLoanCode> for ReturnCode
Source§fn from(value: CryptoLoanCode) -> Self
fn from(value: CryptoLoanCode) -> Self
Converts to this type from the input type.
Source§impl Hash for CryptoLoanCode
impl Hash for CryptoLoanCode
Source§impl PartialEq for CryptoLoanCode
impl PartialEq for CryptoLoanCode
impl Copy for CryptoLoanCode
impl Eq for CryptoLoanCode
impl StructuralPartialEq for CryptoLoanCode
Auto Trait Implementations§
impl Freeze for CryptoLoanCode
impl RefUnwindSafe for CryptoLoanCode
impl Send for CryptoLoanCode
impl Sync for CryptoLoanCode
impl Unpin for CryptoLoanCode
impl UnwindSafe for CryptoLoanCode
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
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
Compare self to
key and return true if they are equal.