pub struct BybitAccountInfo {
pub unified_margin_status: i32,
pub account_id: String,
pub account_type: String,
pub uid: String,
pub account_mode: Option<String>,
pub master_trader_id: Option<String>,
}Expand description
Bybit account information response
Fields§
§unified_margin_status: i32Account type determined by unifiedMarginStatus
account_id: StringAccount ID
account_type: StringAccount type string
uid: StringMain UID
account_mode: Option<String>Account mode information
master_trader_id: Option<String>Master trader ID for copy trading
Implementations§
Source§impl BybitAccountInfo
impl BybitAccountInfo
Sourcepub const fn get_account_type(&self) -> Option<BybitAccountType>
pub const fn get_account_type(&self) -> Option<BybitAccountType>
Get the account type enum from unifiedMarginStatus
Sourcepub fn supports_unified_features(&self) -> bool
pub fn supports_unified_features(&self) -> bool
Check if this account supports V5 unified features
Sourcepub fn supports_uta2_features(&self) -> bool
pub fn supports_uta2_features(&self) -> bool
Check if this account supports UTA 2.0 advanced features
Trait Implementations§
Source§impl Clone for BybitAccountInfo
impl Clone for BybitAccountInfo
Source§fn clone(&self) -> BybitAccountInfo
fn clone(&self) -> BybitAccountInfo
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 BybitAccountInfo
impl Debug for BybitAccountInfo
Source§impl<'de> Deserialize<'de> for BybitAccountInfo
impl<'de> Deserialize<'de> for BybitAccountInfo
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
Auto Trait Implementations§
impl Freeze for BybitAccountInfo
impl RefUnwindSafe for BybitAccountInfo
impl Send for BybitAccountInfo
impl Sync for BybitAccountInfo
impl Unpin for BybitAccountInfo
impl UnwindSafe for BybitAccountInfo
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