pub struct UserLiquidation {
pub event_number: u64,
pub liquidatee_address: String,
pub liquidator_address: String,
pub liquidator_reward: Decimal,
pub mark_price: Decimal,
pub market_id: u16,
pub realized_pnl: Decimal,
pub side: String,
pub size: Decimal,
pub symbol: String,
pub time: i64,
pub tx_hash: String,
}Expand description
UserLiquidation
JSON schema
{
"type": "object",
"required": [
"eventNumber",
"liquidateeAddress",
"liquidatorAddress",
"liquidatorReward",
"markPrice",
"marketId",
"realizedPnl",
"side",
"size",
"symbol",
"time",
"txHash"
],
"properties": {
"eventNumber": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"liquidateeAddress": {
"type": "string"
},
"liquidatorAddress": {
"type": "string"
},
"liquidatorReward": {
"type": "string",
"format": "decimal"
},
"markPrice": {
"type": "string",
"format": "decimal"
},
"marketId": {
"type": "integer",
"format": "uint16",
"minimum": 0.0
},
"realizedPnl": {
"type": "string",
"format": "decimal"
},
"side": {
"type": "string"
},
"size": {
"type": "string",
"format": "decimal"
},
"symbol": {
"type": "string"
},
"time": {
"type": "integer",
"format": "int64"
},
"txHash": {
"type": "string"
}
}
}Fields§
§event_number: u64§liquidatee_address: String§liquidator_address: String§liquidator_reward: Decimal§mark_price: Decimal§market_id: u16§realized_pnl: Decimal§side: String§size: Decimal§symbol: String§time: i64§tx_hash: StringTrait Implementations§
Source§impl Clone for UserLiquidation
impl Clone for UserLiquidation
Source§fn clone(&self) -> UserLiquidation
fn clone(&self) -> UserLiquidation
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 UserLiquidation
impl Debug for UserLiquidation
Source§impl<'de> Deserialize<'de> for UserLiquidation
impl<'de> Deserialize<'de> for UserLiquidation
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 UserLiquidation
impl RefUnwindSafe for UserLiquidation
impl Send for UserLiquidation
impl Sync for UserLiquidation
impl Unpin for UserLiquidation
impl UnsafeUnpin for UserLiquidation
impl UnwindSafe for UserLiquidation
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