pub struct MarginAccountDetails {
pub borrow_enabled: bool,
pub margin_level: f64,
pub total_asset_of_btc: f64,
pub total_liability_of_btc: f64,
pub total_net_asset_of_btc: f64,
pub trade_enabled: bool,
pub transfer_enabled: bool,
pub user_assets: Vec<MarginAsset>,
}Expand description
Margin account details.
Fields§
§borrow_enabled: boolWhether borrow is enabled.
margin_level: f64Margin level.
total_asset_of_btc: f64Total asset in BTC.
total_liability_of_btc: f64Total liability in BTC.
total_net_asset_of_btc: f64Total net asset in BTC.
trade_enabled: boolWhether trading is enabled.
transfer_enabled: boolWhether transfer is enabled.
user_assets: Vec<MarginAsset>User assets.
Trait Implementations§
Source§impl Clone for MarginAccountDetails
impl Clone for MarginAccountDetails
Source§fn clone(&self) -> MarginAccountDetails
fn clone(&self) -> MarginAccountDetails
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 MarginAccountDetails
impl Debug for MarginAccountDetails
Source§impl<'de> Deserialize<'de> for MarginAccountDetails
impl<'de> Deserialize<'de> for MarginAccountDetails
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 MarginAccountDetails
impl RefUnwindSafe for MarginAccountDetails
impl Send for MarginAccountDetails
impl Sync for MarginAccountDetails
impl Unpin for MarginAccountDetails
impl UnwindSafe for MarginAccountDetails
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