#[repr(i32)]pub enum ReturnCode {
Asset(AssetCode),
Earn(EarnCode),
CryptoLoan(CryptoLoanCode),
SpotLeverageToken(SpotLeverageTokenCode),
SpotTrade(SpotTradeCode),
SpotMargin(SpotMarginCode),
Uta(UtaCode),
General(GeneralCode),
}Expand description
Enum representing Bybit API V5 return/error codes.
See: https://bybit-exchange.github.io/docs/v5/error
Variants§
Asset(AssetCode)
Asset return/error codes.
Earn(EarnCode)
Earn return/error codes.
CryptoLoan(CryptoLoanCode)
Crypto Loan return/error codes.
SpotLeverageToken(SpotLeverageTokenCode)
Spot Leverage Token return/error codes.
SpotTrade(SpotTradeCode)
Spot Trade return/error codes.
SpotMargin(SpotMarginCode)
Spot Margin return/error codes.
Uta(UtaCode)
UTA return/error codes.
General(GeneralCode)
General return/error codes.
Implementations§
Trait Implementations§
Source§impl Clone for ReturnCode
impl Clone for ReturnCode
Source§fn clone(&self) -> ReturnCode
fn clone(&self) -> ReturnCode
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 ReturnCode
impl Debug for ReturnCode
Source§impl<'de> Deserialize<'de> for ReturnCode
impl<'de> Deserialize<'de> for ReturnCode
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ReturnCode
impl Display for ReturnCode
Source§impl From<AssetCode> for ReturnCode
impl From<AssetCode> for ReturnCode
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 From<EarnCode> for ReturnCode
impl From<EarnCode> for ReturnCode
Source§impl From<GeneralCode> for ReturnCode
impl From<GeneralCode> for ReturnCode
Source§fn from(value: GeneralCode) -> Self
fn from(value: GeneralCode) -> Self
Converts to this type from the input type.
Source§impl From<SpotLeverageTokenCode> for ReturnCode
impl From<SpotLeverageTokenCode> for ReturnCode
Source§fn from(value: SpotLeverageTokenCode) -> Self
fn from(value: SpotLeverageTokenCode) -> Self
Converts to this type from the input type.
Source§impl From<SpotMarginCode> for ReturnCode
impl From<SpotMarginCode> for ReturnCode
Source§fn from(value: SpotMarginCode) -> Self
fn from(value: SpotMarginCode) -> Self
Converts to this type from the input type.
Source§impl From<SpotTradeCode> for ReturnCode
impl From<SpotTradeCode> for ReturnCode
Source§fn from(value: SpotTradeCode) -> Self
fn from(value: SpotTradeCode) -> Self
Converts to this type from the input type.
Source§impl From<UtaCode> for ReturnCode
impl From<UtaCode> for ReturnCode
Source§impl Hash for ReturnCode
impl Hash for ReturnCode
Source§impl PartialEq for ReturnCode
impl PartialEq for ReturnCode
Source§impl Serialize for ReturnCode
impl Serialize for ReturnCode
impl Copy for ReturnCode
impl Eq for ReturnCode
impl StructuralPartialEq for ReturnCode
Auto Trait Implementations§
impl Freeze for ReturnCode
impl RefUnwindSafe for ReturnCode
impl Send for ReturnCode
impl Sync for ReturnCode
impl Unpin for ReturnCode
impl UnwindSafe for ReturnCode
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.