pub enum BybitAccountType {
Classic = 1,
Uta1 = 3,
Uta1Pro = 4,
Uta2 = 5,
Uta2Pro = 6,
}Expand description
Bybit V5 account types based on unifiedMarginStatus
Variants§
Classic = 1
Classic account (separate derivatives and spot)
Uta1 = 3
Unified Trading Account 1.0
Uta1Pro = 4
Unified Trading Account 1.0 Pro
Uta2 = 5
Unified Trading Account 2.0
Uta2Pro = 6
Unified Trading Account 2.0 Pro
Implementations§
Source§impl BybitAccountType
impl BybitAccountType
Sourcepub const fn from_status(status: i32) -> Option<Self>
pub const fn from_status(status: i32) -> Option<Self>
Create from unifiedMarginStatus value
Sourcepub const fn supports_unified_features(self) -> bool
pub const fn supports_unified_features(self) -> bool
Check if account supports unified trading features
Sourcepub const fn supports_uta2_features(self) -> bool
pub const fn supports_uta2_features(self) -> bool
Check if account supports UTA 2.0 advanced features
Sourcepub const fn supports_hedge_mode(self) -> bool
pub const fn supports_hedge_mode(self) -> bool
Check if account supports hedge mode for inverse futures
Sourcepub const fn description(self) -> &'static str
pub const fn description(self) -> &'static str
Get account type description
Trait Implementations§
Source§impl Clone for BybitAccountType
impl Clone for BybitAccountType
Source§fn clone(&self) -> BybitAccountType
fn clone(&self) -> BybitAccountType
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 BybitAccountType
impl Debug for BybitAccountType
Source§impl PartialEq for BybitAccountType
impl PartialEq for BybitAccountType
impl Copy for BybitAccountType
impl Eq for BybitAccountType
impl StructuralPartialEq for BybitAccountType
Auto Trait Implementations§
impl Freeze for BybitAccountType
impl RefUnwindSafe for BybitAccountType
impl Send for BybitAccountType
impl Sync for BybitAccountType
impl Unpin for BybitAccountType
impl UnwindSafe for BybitAccountType
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