pub struct LighterTrade {Show 34 fields
pub trade_id: i64,
pub trade_id_str: Option<String>,
pub tx_hash: String,
pub trade_type: LighterTradeType,
pub market_id: i16,
pub size: Decimal,
pub price: Decimal,
pub usd_amount: Decimal,
pub ask_id: i64,
pub ask_id_str: Option<String>,
pub bid_id: i64,
pub bid_id_str: Option<String>,
pub ask_client_id: i64,
pub ask_client_id_str: Option<String>,
pub bid_client_id: i64,
pub bid_client_id_str: Option<String>,
pub ask_account_id: i64,
pub bid_account_id: i64,
pub is_maker_ask: bool,
pub block_height: i64,
pub timestamp: i64,
pub taker_fee: Option<i32>,
pub taker_position_size_before: Option<Decimal>,
pub taker_entry_quote_before: Option<Decimal>,
pub taker_initial_margin_fraction_before: Option<u16>,
pub taker_position_sign_changed: Option<bool>,
pub maker_fee: Option<i32>,
pub maker_position_size_before: Option<Decimal>,
pub maker_entry_quote_before: Option<Decimal>,
pub maker_initial_margin_fraction_before: Option<u16>,
pub maker_position_sign_changed: Option<bool>,
pub transaction_time: i64,
pub ask_account_pnl: Option<Decimal>,
pub bid_account_pnl: Option<Decimal>,
}Fields§
§trade_id: i64§trade_id_str: Option<String>§tx_hash: String§trade_type: LighterTradeType§market_id: i16§size: Decimal§price: Decimal§usd_amount: Decimal§ask_id: i64§ask_id_str: Option<String>§bid_id: i64§bid_id_str: Option<String>§ask_client_id: i64§ask_client_id_str: Option<String>§bid_client_id: i64§bid_client_id_str: Option<String>§ask_account_id: i64§bid_account_id: i64§is_maker_ask: bool§block_height: i64§timestamp: i64§taker_fee: Option<i32>§taker_position_size_before: Option<Decimal>§taker_entry_quote_before: Option<Decimal>§taker_initial_margin_fraction_before: Option<u16>§taker_position_sign_changed: Option<bool>§maker_fee: Option<i32>§maker_position_size_before: Option<Decimal>§maker_entry_quote_before: Option<Decimal>§maker_initial_margin_fraction_before: Option<u16>§maker_position_sign_changed: Option<bool>§transaction_time: i64§ask_account_pnl: Option<Decimal>§bid_account_pnl: Option<Decimal>Trait Implementations§
Source§impl Clone for LighterTrade
impl Clone for LighterTrade
Source§fn clone(&self) -> LighterTrade
fn clone(&self) -> LighterTrade
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 LighterTrade
impl Debug for LighterTrade
Source§impl<'de> Deserialize<'de> for LighterTrade
impl<'de> Deserialize<'de> for LighterTrade
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 PartialEq for LighterTrade
impl PartialEq for LighterTrade
Source§fn eq(&self, other: &LighterTrade) -> bool
fn eq(&self, other: &LighterTrade) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LighterTrade
impl Serialize for LighterTrade
impl StructuralPartialEq for LighterTrade
Auto Trait Implementations§
impl Freeze for LighterTrade
impl RefUnwindSafe for LighterTrade
impl Send for LighterTrade
impl Sync for LighterTrade
impl Unpin for LighterTrade
impl UnsafeUnpin for LighterTrade
impl UnwindSafe for LighterTrade
Blanket Implementations§
impl<T> Allocation for T
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<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>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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