pub struct ManagedSubaccountMarginAssetResponse {
pub margin_level: String,
pub total_asset_of_btc: String,
pub total_liability_of_btc: String,
pub total_net_asset_of_btc: String,
pub user_assets: Vec<ManagedSubaccountMarginAssetResponseUserAssetsItem>,
}
Expand description
ManagedSubaccountMarginAssetResponse
JSON schema
{
"type": "object",
"required": [
"marginLevel",
"totalAssetOfBtc",
"totalLiabilityOfBtc",
"totalNetAssetOfBtc",
"userAssets"
],
"properties": {
"marginLevel": {
"examples": [
"999"
],
"type": "string"
},
"totalAssetOfBtc": {
"examples": [
"0"
],
"type": "string"
},
"totalLiabilityOfBtc": {
"examples": [
"0"
],
"type": "string"
},
"totalNetAssetOfBtc": {
"examples": [
"0"
],
"type": "string"
},
"userAssets": {
"type": "array",
"items": {
"type": "object",
"required": [
"asset",
"borrowed",
"free",
"interest",
"locked",
"netAsset"
],
"properties": {
"asset": {
"examples": [
"BTC"
],
"type": "string"
},
"borrowed": {
"examples": [
"0"
],
"type": "string"
},
"free": {
"examples": [
"0"
],
"type": "string"
},
"interest": {
"examples": [
"0"
],
"type": "string"
},
"locked": {
"examples": [
"0"
],
"type": "string"
},
"netAsset": {
"examples": [
"0"
],
"type": "string"
}
}
}
}
}
}
Fields§
§margin_level: String
§total_asset_of_btc: String
§total_liability_of_btc: String
§total_net_asset_of_btc: String
§user_assets: Vec<ManagedSubaccountMarginAssetResponseUserAssetsItem>
Trait Implementations§
Source§impl Clone for ManagedSubaccountMarginAssetResponse
impl Clone for ManagedSubaccountMarginAssetResponse
Source§fn clone(&self) -> ManagedSubaccountMarginAssetResponse
fn clone(&self) -> ManagedSubaccountMarginAssetResponse
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<'de> Deserialize<'de> for ManagedSubaccountMarginAssetResponse
impl<'de> Deserialize<'de> for ManagedSubaccountMarginAssetResponse
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<&ManagedSubaccountMarginAssetResponse> for ManagedSubaccountMarginAssetResponse
impl From<&ManagedSubaccountMarginAssetResponse> for ManagedSubaccountMarginAssetResponse
Source§fn from(value: &ManagedSubaccountMarginAssetResponse) -> Self
fn from(value: &ManagedSubaccountMarginAssetResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ManagedSubaccountMarginAssetResponse
impl RefUnwindSafe for ManagedSubaccountMarginAssetResponse
impl Send for ManagedSubaccountMarginAssetResponse
impl Sync for ManagedSubaccountMarginAssetResponse
impl Unpin for ManagedSubaccountMarginAssetResponse
impl UnwindSafe for ManagedSubaccountMarginAssetResponse
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