pub struct SnapshotFutures {
pub code: i64,
pub msg: String,
pub snapshot_vos: Vec<SnapshotFuturesSnapshotVosItem>,
}
Expand description
SnapshotFutures
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": [
"assets",
"position"
],
"properties": {
"assets": {
"type": "array",
"items": {
"type": "object",
"required": [
"asset",
"marginBalance",
"walletBalance"
],
"properties": {
"asset": {
"examples": [
"USDT"
],
"type": "string"
},
"marginBalance": {
"examples": [
"118.99782335"
],
"type": "string"
},
"walletBalance": {
"examples": [
"120.23811389"
],
"type": "string"
}
}
}
},
"position": {
"type": "array",
"items": {
"type": "object",
"required": [
"entryPrice",
"markPrice",
"positionAmt",
"symbol",
"unRealizedProfit"
],
"properties": {
"entryPrice": {
"examples": [
"7130.41000000"
],
"type": "string"
},
"markPrice": {
"examples": [
"7257.66239673"
],
"type": "string"
},
"positionAmt": {
"examples": [
"0.01000000"
],
"type": "string"
},
"symbol": {
"examples": [
"BTCUSDT"
],
"type": "string"
},
"unRealizedProfit": {
"examples": [
"1.24029054"
],
"type": "string"
}
}
}
}
}
},
"type": {
"examples": [
"futures"
],
"type": "string"
},
"updateTime": {
"examples": [
1576281599000
],
"type": "integer",
"format": "int64"
}
}
}
}
}
}
Fields§
§code: i64
§msg: String
§snapshot_vos: Vec<SnapshotFuturesSnapshotVosItem>
Trait Implementations§
Source§impl Clone for SnapshotFutures
impl Clone for SnapshotFutures
Source§fn clone(&self) -> SnapshotFutures
fn clone(&self) -> SnapshotFutures
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 SnapshotFutures
impl Debug for SnapshotFutures
Source§impl<'de> Deserialize<'de> for SnapshotFutures
impl<'de> Deserialize<'de> for SnapshotFutures
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<&SnapshotFutures> for SnapshotFutures
impl From<&SnapshotFutures> for SnapshotFutures
Source§fn from(value: &SnapshotFutures) -> Self
fn from(value: &SnapshotFutures) -> Self
Converts to this type from the input type.
Source§impl From<SnapshotFutures> for AccountSnapshotResponse
impl From<SnapshotFutures> for AccountSnapshotResponse
Source§fn from(value: SnapshotFutures) -> Self
fn from(value: SnapshotFutures) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SnapshotFutures
impl RefUnwindSafe for SnapshotFutures
impl Send for SnapshotFutures
impl Sync for SnapshotFutures
impl Unpin for SnapshotFutures
impl UnwindSafe for SnapshotFutures
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