pub struct TradeEntry {
pub transaction_hash: Option<String>,
pub block_timestamp: i64,
pub collateral_amount: Option<String>,
pub market: Option<TradeMarketInfo>,
pub outcome_index: Option<i32>,
pub outcome_token_amount: Option<String>,
pub strategy: Option<String>,
}Expand description
AMM trade entry from GET /portfolio/trades.
Fields§
§transaction_hash: Option<String>§block_timestamp: i64§collateral_amount: Option<String>§market: Option<TradeMarketInfo>§outcome_index: Option<i32>§outcome_token_amount: Option<String>§strategy: Option<String>Trait Implementations§
Source§impl Clone for TradeEntry
impl Clone for TradeEntry
Source§fn clone(&self) -> TradeEntry
fn clone(&self) -> TradeEntry
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 TradeEntry
impl Debug for TradeEntry
Source§impl<'de> Deserialize<'de> for TradeEntry
impl<'de> Deserialize<'de> for TradeEntry
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 TradeEntry
impl RefUnwindSafe for TradeEntry
impl Send for TradeEntry
impl Sync for TradeEntry
impl Unpin for TradeEntry
impl UnsafeUnpin for TradeEntry
impl UnwindSafe for TradeEntry
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