pub enum BybitCategory {
Spot,
Linear,
Inverse,
Options,
}Expand description
Bybit V5 product categories
Variants§
Spot
Spot trading category for spot markets
Linear
Linear futures category for USDT-margined contracts
Inverse
Inverse futures category for coin-margined contracts
Options
Options category for options contracts
Implementations§
Source§impl BybitCategory
impl BybitCategory
Sourcepub fn parse_category(s: &str) -> Option<Self>
pub fn parse_category(s: &str) -> Option<Self>
Parse from API string
Trait Implementations§
Source§impl Clone for BybitCategory
impl Clone for BybitCategory
Source§fn clone(&self) -> BybitCategory
fn clone(&self) -> BybitCategory
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BybitCategory
impl Debug for BybitCategory
Source§impl PartialEq for BybitCategory
impl PartialEq for BybitCategory
impl Eq for BybitCategory
impl StructuralPartialEq for BybitCategory
Auto Trait Implementations§
impl Freeze for BybitCategory
impl RefUnwindSafe for BybitCategory
impl Send for BybitCategory
impl Sync for BybitCategory
impl Unpin for BybitCategory
impl UnwindSafe for BybitCategory
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more