pub struct SnapshotMargin {
pub code: i64,
pub msg: String,
pub snapshot_vos: Vec<SnapshotMarginSnapshotVosItem>,
}
Expand description
SnapshotMargin
JSON schema
{
"type": "object",
"required": [
"code",
"msg",
"snapshotVos"
],
"properties": {
"code": {
"examples": [
200
],
"type": "integer",
"format": "int64"
},
"msg": {
"examples": [
""
],
"type": "string"
},
"snapshotVos": {
"type": "array",
"items": {
"type": "object",
"required": [
"data",
"type",
"updateTime"
],
"properties": {
"data": {
"type": "object",
"required": [
"marginLevel",
"totalAssetOfBtc",
"totalLiabilityOfBtc",
"totalNetAssetOfBtc",
"userAssets"
],
"properties": {
"marginLevel": {
"examples": [
"2748.02909813"
],
"type": "string"
},
"totalAssetOfBtc": {
"examples": [
"0.00274803"
],
"type": "string"
},
"totalLiabilityOfBtc": {
"examples": [
"0.00000100"
],
"type": "string"
},
"totalNetAssetOfBtc": {
"examples": [
"0.00274750"
],
"type": "string"
},
"userAssets": {
"type": "array",
"items": {
"type": "object",
"required": [
"asset",
"borrowed",
"free",
"interest",
"locked",
"netAsset"
],
"properties": {
"asset": {
"examples": [
"XRP"
],
"type": "string"
},
"borrowed": {
"examples": [
"0.00000000"
],
"type": "string"
},
"free": {
"examples": [
"1.00000000"
],
"type": "string"
},
"interest": {
"examples": [
"0.00000000"
],
"type": "string"
},
"locked": {
"examples": [
"0.00000000"
],
"type": "string"
},
"netAsset": {
"examples": [
"1.00000000"
],
"type": "string"
}
}
}
}
}
},
"type": {
"examples": [
"margin"
],
"type": "string"
},
"updateTime": {
"examples": [
1576281599000
],
"type": "integer",
"format": "int64"
}
}
}
}
}
}
Fields§
§code: i64
§msg: String
§snapshot_vos: Vec<SnapshotMarginSnapshotVosItem>
Trait Implementations§
Source§impl Clone for SnapshotMargin
impl Clone for SnapshotMargin
Source§fn clone(&self) -> SnapshotMargin
fn clone(&self) -> SnapshotMargin
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 SnapshotMargin
impl Debug for SnapshotMargin
Source§impl<'de> Deserialize<'de> for SnapshotMargin
impl<'de> Deserialize<'de> for SnapshotMargin
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<&SnapshotMargin> for SnapshotMargin
impl From<&SnapshotMargin> for SnapshotMargin
Source§fn from(value: &SnapshotMargin) -> Self
fn from(value: &SnapshotMargin) -> Self
Converts to this type from the input type.
Source§impl From<SnapshotMargin> for AccountSnapshotResponse
impl From<SnapshotMargin> for AccountSnapshotResponse
Source§fn from(value: SnapshotMargin) -> Self
fn from(value: SnapshotMargin) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SnapshotMargin
impl RefUnwindSafe for SnapshotMargin
impl Send for SnapshotMargin
impl Sync for SnapshotMargin
impl Unpin for SnapshotMargin
impl UnwindSafe for SnapshotMargin
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