pub struct MarginAccountResponse {
pub borrow_enabled: bool,
pub margin_level: String,
pub total_asset_of_btc: String,
pub total_liability_of_btc: String,
pub total_net_asset_of_btc: String,
pub trade_enabled: bool,
pub transfer_enabled: bool,
pub user_assets: Vec<MarginAccountResponseUserAssetsItem>,
}
Expand description
MarginAccountResponse
JSON schema
{
"type": "object",
"required": [
"borrowEnabled",
"marginLevel",
"totalAssetOfBtc",
"totalLiabilityOfBtc",
"totalNetAssetOfBtc",
"tradeEnabled",
"transferEnabled",
"userAssets"
],
"properties": {
"borrowEnabled": {
"type": "boolean"
},
"marginLevel": {
"examples": [
"11.64405625"
],
"type": "string"
},
"totalAssetOfBtc": {
"examples": [
"6.82728457"
],
"type": "string"
},
"totalLiabilityOfBtc": {
"examples": [
"0.58633215"
],
"type": "string"
},
"totalNetAssetOfBtc": {
"examples": [
"6.24095242"
],
"type": "string"
},
"tradeEnabled": {
"type": "boolean"
},
"transferEnabled": {
"type": "boolean"
},
"userAssets": {
"type": "array",
"items": {
"type": "object",
"required": [
"asset",
"borrowed",
"free",
"interest",
"locked",
"netAsset"
],
"properties": {
"asset": {
"examples": [
"BTC"
],
"type": "string"
},
"borrowed": {
"examples": [
"0.00000000"
],
"type": "string"
},
"free": {
"examples": [
"0.00499500"
],
"type": "string"
},
"interest": {
"examples": [
"0.00000000"
],
"type": "string"
},
"locked": {
"examples": [
"0.00000000"
],
"type": "string"
},
"netAsset": {
"examples": [
"0.00499500"
],
"type": "string"
}
}
}
}
}
}
Fields§
§borrow_enabled: bool
§margin_level: String
§total_asset_of_btc: String
§total_liability_of_btc: String
§total_net_asset_of_btc: String
§trade_enabled: bool
§transfer_enabled: bool
§user_assets: Vec<MarginAccountResponseUserAssetsItem>
Trait Implementations§
Source§impl Clone for MarginAccountResponse
impl Clone for MarginAccountResponse
Source§fn clone(&self) -> MarginAccountResponse
fn clone(&self) -> MarginAccountResponse
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 MarginAccountResponse
impl Debug for MarginAccountResponse
Source§impl<'de> Deserialize<'de> for MarginAccountResponse
impl<'de> Deserialize<'de> for MarginAccountResponse
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 From<&MarginAccountResponse> for MarginAccountResponse
impl From<&MarginAccountResponse> for MarginAccountResponse
Source§fn from(value: &MarginAccountResponse) -> Self
fn from(value: &MarginAccountResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MarginAccountResponse
impl RefUnwindSafe for MarginAccountResponse
impl Send for MarginAccountResponse
impl Sync for MarginAccountResponse
impl Unpin for MarginAccountResponse
impl UnwindSafe for MarginAccountResponse
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