pub struct LiquidationHistoryEntry {Show 17 fields
pub id: i64,
pub wallet: String,
pub previous_state: String,
pub new_state: String,
pub liquidation_mode: Option<String>,
pub equity: Decimal,
pub mm_required: Decimal,
pub maintenance_margin: Decimal,
pub shortfall: Decimal,
pub auction_id: Option<String>,
pub request_id: Option<String>,
pub tx_hash: Option<String>,
pub margin_needed: Option<Decimal>,
pub winner_address: Option<String>,
pub bonus: Option<Decimal>,
pub details: Value,
pub timestamp: i64,
}Expand description
Liquidation history transition entry.
Fields§
§id: i64History entry ID.
wallet: StringWallet address.
previous_state: StringPrevious liquidation state.
new_state: StringNew liquidation state.
liquidation_mode: Option<String>Liquidation mode (partial or full) if applicable.
equity: DecimalEquity at time of transition.
mm_required: DecimalMM required at time of transition.
maintenance_margin: DecimalMaintenance margin at time of transition.
shortfall: DecimalShortfall at time of transition.
auction_id: Option<String>Auction ID, if applicable.
request_id: Option<String>Request ID associated with the transition.
tx_hash: Option<String>Transaction hash associated with the transition.
margin_needed: Option<Decimal>Margin needed for full liquidation, when applicable.
winner_address: Option<String>Winning liquidator/manager, if resolved.
bonus: Option<Decimal>Bonus credited on resolution, if any.
details: ValueAdditional status details.
timestamp: i64Timestamp of transition.
Trait Implementations§
Source§impl Clone for LiquidationHistoryEntry
impl Clone for LiquidationHistoryEntry
Source§fn clone(&self) -> LiquidationHistoryEntry
fn clone(&self) -> LiquidationHistoryEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LiquidationHistoryEntry
impl Debug for LiquidationHistoryEntry
Source§impl<'de> Deserialize<'de> for LiquidationHistoryEntry
impl<'de> Deserialize<'de> for LiquidationHistoryEntry
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LiquidationHistoryEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LiquidationHistoryEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for LiquidationHistoryEntry
impl Serialize for LiquidationHistoryEntry
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for LiquidationHistoryEntry
impl !UnwindSafe for LiquidationHistoryEntry
impl Forget for LiquidationHistoryEntry
impl Freeze for LiquidationHistoryEntry
impl Move for LiquidationHistoryEntry
impl Send for LiquidationHistoryEntry
impl Sync for LiquidationHistoryEntry
impl Unpin for LiquidationHistoryEntry
impl UnsafeUnpin for LiquidationHistoryEntry
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
impl<'de, T> BorrowedRpcObject<'de> for T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more