#[repr(i32)]pub enum EarnCode {
EarnProductNotSupported = 160_001,
InsufficientBalance = 160_002,
InvalidSubscriptionAmount = 160_003,
SubscriptionFailed = 160_004,
RedemptionFailed = 160_005,
InvalidRedemptionAmount = 160_006,
EarnProductDisabled = 160_007,
EarnOrderNotExist = 160_008,
}Expand description
Enum representing Bybit API V5 Earn error codes.
See: https://bybit-exchange.github.io/docs/v5/error#earn
Variants§
EarnProductNotSupported = 160_001
Earn product is not supported.
InsufficientBalance = 160_002
Insufficient balance in account.
InvalidSubscriptionAmount = 160_003
Invalid subscription amount.
SubscriptionFailed = 160_004
Subscription failed.
RedemptionFailed = 160_005
Redemption failed.
InvalidRedemptionAmount = 160_006
Invalid redemption amount.
EarnProductDisabled = 160_007
Earn product is disabled for this account.
EarnOrderNotExist = 160_008
Earn product order does not exist.
Implementations§
Trait Implementations§
Source§impl From<EarnCode> for ReturnCode
impl From<EarnCode> for ReturnCode
impl Copy for EarnCode
impl Eq for EarnCode
impl StructuralPartialEq for EarnCode
Auto Trait Implementations§
impl Freeze for EarnCode
impl RefUnwindSafe for EarnCode
impl Send for EarnCode
impl Sync for EarnCode
impl Unpin for EarnCode
impl UnsafeUnpin for EarnCode
impl UnwindSafe for EarnCode
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.