pub struct SnapshotFuturesSnapshotVosItem {
pub data: SnapshotFuturesSnapshotVosItemData,
pub type_: String,
pub update_time: i64,
}
Expand description
SnapshotFuturesSnapshotVosItem
JSON schema
{
"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§
§data: SnapshotFuturesSnapshotVosItemData
§type_: String
§update_time: i64
Trait Implementations§
Source§impl Clone for SnapshotFuturesSnapshotVosItem
impl Clone for SnapshotFuturesSnapshotVosItem
Source§fn clone(&self) -> SnapshotFuturesSnapshotVosItem
fn clone(&self) -> SnapshotFuturesSnapshotVosItem
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 SnapshotFuturesSnapshotVosItem
impl<'de> Deserialize<'de> for SnapshotFuturesSnapshotVosItem
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<&SnapshotFuturesSnapshotVosItem> for SnapshotFuturesSnapshotVosItem
impl From<&SnapshotFuturesSnapshotVosItem> for SnapshotFuturesSnapshotVosItem
Source§fn from(value: &SnapshotFuturesSnapshotVosItem) -> Self
fn from(value: &SnapshotFuturesSnapshotVosItem) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SnapshotFuturesSnapshotVosItem
impl RefUnwindSafe for SnapshotFuturesSnapshotVosItem
impl Send for SnapshotFuturesSnapshotVosItem
impl Sync for SnapshotFuturesSnapshotVosItem
impl Unpin for SnapshotFuturesSnapshotVosItem
impl UnwindSafe for SnapshotFuturesSnapshotVosItem
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