pub struct UserTrade {Show 16 fields
pub address: String,
pub buyer: bool,
pub commission: Decimal,
pub commission_asset: String,
pub id: u64,
pub maker: bool,
pub order_id: u64,
pub position_side: String,
pub price: Decimal,
pub qty: Decimal,
pub quote_qty: Decimal,
pub realized_pnl: Decimal,
pub side: String,
pub symbol: String,
pub time: i64,
pub tx_hash: String,
}Expand description
UserTrade
JSON schema
{
"type": "object",
"required": [
"address",
"buyer",
"commission",
"commissionAsset",
"id",
"maker",
"orderId",
"positionSide",
"price",
"qty",
"quoteQty",
"realizedPnl",
"side",
"symbol",
"time",
"txHash"
],
"properties": {
"address": {
"type": "string"
},
"buyer": {
"type": "boolean"
},
"commission": {
"type": "string",
"format": "decimal"
},
"commissionAsset": {
"type": "string"
},
"id": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"maker": {
"type": "boolean"
},
"orderId": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"positionSide": {
"type": "string"
},
"price": {
"type": "string",
"format": "decimal"
},
"qty": {
"type": "string",
"format": "decimal"
},
"quoteQty": {
"type": "string",
"format": "decimal"
},
"realizedPnl": {
"type": "string",
"format": "decimal"
},
"side": {
"type": "string"
},
"symbol": {
"type": "string"
},
"time": {
"type": "integer",
"format": "int64"
},
"txHash": {
"type": "string"
}
}
}Fields§
§address: String§buyer: bool§commission: Decimal§commission_asset: String§id: u64§maker: bool§order_id: u64§position_side: String§price: Decimal§qty: Decimal§quote_qty: Decimal§realized_pnl: Decimal§side: String§symbol: String§time: i64§tx_hash: StringTrait Implementations§
Source§impl<'de> Deserialize<'de> for UserTrade
impl<'de> Deserialize<'de> for UserTrade
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
Auto Trait Implementations§
impl Freeze for UserTrade
impl RefUnwindSafe for UserTrade
impl Send for UserTrade
impl Sync for UserTrade
impl Unpin for UserTrade
impl UnsafeUnpin for UserTrade
impl UnwindSafe for UserTrade
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