pub struct ManagedSubaccountFetchFutureAssetResponse {
pub code: i32,
pub message: String,
pub snapshot_vos: Vec<ManagedSubaccountFetchFutureAssetResponseSnapshotVosItem>,
}
Expand description
ManagedSubaccountFetchFutureAssetResponse
JSON schema
{
"type": "object",
"required": [
"code",
"message",
"snapshotVos"
],
"properties": {
"code": {
"examples": [
200
],
"type": "integer",
"format": "int32"
},
"message": {
"examples": [
"OK"
],
"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": [
100
],
"type": "number",
"format": "float"
},
"walletBalance": {
"examples": [
100
],
"type": "number",
"format": "float"
}
}
}
},
"position": {
"type": "array",
"items": {
"type": "object",
"required": [
"entryPrice",
"markPrice",
"positionAmt",
"symbol"
],
"properties": {
"entryPrice": {
"examples": [
17000
],
"type": "number",
"format": "float"
},
"markPrice": {
"examples": [
17000
],
"type": "number",
"format": "float"
},
"positionAmt": {
"examples": [
0.1
],
"type": "number",
"format": "float"
},
"symbol": {
"examples": [
"BTCUSDT"
],
"type": "string"
}
}
}
}
}
},
"type": {
"examples": [
"FUTURES"
],
"type": "string"
},
"updateTime": {
"examples": [
1626400907000
],
"type": "integer",
"format": "int64"
}
}
}
}
}
}
Fields§
§code: i32
§message: String
§snapshot_vos: Vec<ManagedSubaccountFetchFutureAssetResponseSnapshotVosItem>
Trait Implementations§
Source§impl Clone for ManagedSubaccountFetchFutureAssetResponse
impl Clone for ManagedSubaccountFetchFutureAssetResponse
Source§fn clone(&self) -> ManagedSubaccountFetchFutureAssetResponse
fn clone(&self) -> ManagedSubaccountFetchFutureAssetResponse
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 ManagedSubaccountFetchFutureAssetResponse
impl<'de> Deserialize<'de> for ManagedSubaccountFetchFutureAssetResponse
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<&ManagedSubaccountFetchFutureAssetResponse> for ManagedSubaccountFetchFutureAssetResponse
impl From<&ManagedSubaccountFetchFutureAssetResponse> for ManagedSubaccountFetchFutureAssetResponse
Source§fn from(value: &ManagedSubaccountFetchFutureAssetResponse) -> Self
fn from(value: &ManagedSubaccountFetchFutureAssetResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ManagedSubaccountFetchFutureAssetResponse
impl RefUnwindSafe for ManagedSubaccountFetchFutureAssetResponse
impl Send for ManagedSubaccountFetchFutureAssetResponse
impl Sync for ManagedSubaccountFetchFutureAssetResponse
impl Unpin for ManagedSubaccountFetchFutureAssetResponse
impl UnwindSafe for ManagedSubaccountFetchFutureAssetResponse
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