pub struct SnapshotSpot {
pub code: i64,
pub msg: String,
pub snapshot_vos: Vec<SnapshotSpotSnapshotVosItem>,
}
Expand description
SnapshotSpot
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": [
"balances",
"totalAssetOfBtc"
],
"properties": {
"balances": {
"type": "array",
"items": {
"type": "object",
"required": [
"asset",
"free",
"locked"
],
"properties": {
"asset": {
"examples": [
"BTC"
],
"type": "string"
},
"free": {
"examples": [
"0.2"
],
"type": "string"
},
"locked": {
"examples": [
"0.001"
],
"type": "string"
}
}
}
},
"totalAssetOfBtc": {
"examples": [
"0.09905021"
],
"type": "string"
}
}
},
"type": {
"examples": [
"spot"
],
"type": "string"
},
"updateTime": {
"examples": [
1576281599000
],
"type": "integer",
"format": "int64"
}
}
}
}
}
}
Fields§
§code: i64
§msg: String
§snapshot_vos: Vec<SnapshotSpotSnapshotVosItem>
Trait Implementations§
Source§impl Clone for SnapshotSpot
impl Clone for SnapshotSpot
Source§fn clone(&self) -> SnapshotSpot
fn clone(&self) -> SnapshotSpot
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 SnapshotSpot
impl Debug for SnapshotSpot
Source§impl<'de> Deserialize<'de> for SnapshotSpot
impl<'de> Deserialize<'de> for SnapshotSpot
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<&SnapshotSpot> for SnapshotSpot
impl From<&SnapshotSpot> for SnapshotSpot
Source§fn from(value: &SnapshotSpot) -> Self
fn from(value: &SnapshotSpot) -> Self
Converts to this type from the input type.
Source§impl From<SnapshotSpot> for AccountSnapshotResponse
impl From<SnapshotSpot> for AccountSnapshotResponse
Source§fn from(value: SnapshotSpot) -> Self
fn from(value: SnapshotSpot) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SnapshotSpot
impl RefUnwindSafe for SnapshotSpot
impl Send for SnapshotSpot
impl Sync for SnapshotSpot
impl Unpin for SnapshotSpot
impl UnwindSafe for SnapshotSpot
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