pub struct BswapLiquidityResponseItem {
pub liquidity: BswapLiquidityResponseItemLiquidity,
pub pool_id: i64,
pub pool_nmae: String,
pub share: BswapLiquidityResponseItemShare,
pub update_time: i64,
}
Expand description
BswapLiquidityResponseItem
JSON schema
{
"type": "object",
"required": [
"liquidity",
"poolId",
"poolNmae",
"share",
"updateTime"
],
"properties": {
"liquidity": {
"type": "object",
"required": [
"BUSD",
"USDT"
],
"properties": {
"BUSD": {
"examples": [
100000315.79
],
"type": "number",
"format": "double"
},
"USDT": {
"examples": [
99999245.54
],
"type": "number",
"format": "double"
}
}
},
"poolId": {
"examples": [
2
],
"type": "integer",
"format": "int64"
},
"poolNmae": {
"examples": [
"BUSD/USDT"
],
"type": "string"
},
"share": {
"type": "object",
"required": [
"asset",
"shareAmount",
"sharePercentage"
],
"properties": {
"asset": {
"type": "object",
"required": [
"BUSD",
"USDT"
],
"properties": {
"BUSD": {
"examples": [
6207.02
],
"type": "number",
"format": "double"
},
"USDT": {
"examples": [
6206.95
],
"type": "number",
"format": "double"
}
}
},
"shareAmount": {
"examples": [
12415
],
"type": "number",
"format": "double"
},
"sharePercentage": {
"examples": [
0.00006207
],
"type": "number",
"format": "double"
}
}
},
"updateTime": {
"examples": [
1565769342148
],
"type": "integer",
"format": "int64"
}
}
}
Fields§
§liquidity: BswapLiquidityResponseItemLiquidity
§pool_id: i64
§pool_nmae: String
§update_time: i64
Trait Implementations§
Source§impl Clone for BswapLiquidityResponseItem
impl Clone for BswapLiquidityResponseItem
Source§fn clone(&self) -> BswapLiquidityResponseItem
fn clone(&self) -> BswapLiquidityResponseItem
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 BswapLiquidityResponseItem
impl Debug for BswapLiquidityResponseItem
Source§impl<'de> Deserialize<'de> for BswapLiquidityResponseItem
impl<'de> Deserialize<'de> for BswapLiquidityResponseItem
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<&BswapLiquidityResponseItem> for BswapLiquidityResponseItem
impl From<&BswapLiquidityResponseItem> for BswapLiquidityResponseItem
Source§fn from(value: &BswapLiquidityResponseItem) -> Self
fn from(value: &BswapLiquidityResponseItem) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BswapLiquidityResponseItem
impl RefUnwindSafe for BswapLiquidityResponseItem
impl Send for BswapLiquidityResponseItem
impl Sync for BswapLiquidityResponseItem
impl Unpin for BswapLiquidityResponseItem
impl UnwindSafe for BswapLiquidityResponseItem
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