pub struct AmmPositionEntry {
pub market: PositionMarketInfo,
pub account: String,
pub outcome_index: i32,
pub collateral_amount: String,
pub outcome_token_amount: String,
pub average_fill_price: String,
pub total_buys_cost: String,
pub total_sells_cost: String,
pub realized_pnl: String,
pub unrealized_pnl: String,
pub latest_trade: Option<Value>,
}Fields§
§market: PositionMarketInfo§account: String§outcome_index: i32§collateral_amount: String§outcome_token_amount: String§average_fill_price: String§total_buys_cost: String§total_sells_cost: String§realized_pnl: String§unrealized_pnl: String§latest_trade: Option<Value>Trait Implementations§
Source§impl Clone for AmmPositionEntry
impl Clone for AmmPositionEntry
Source§fn clone(&self) -> AmmPositionEntry
fn clone(&self) -> AmmPositionEntry
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 AmmPositionEntry
impl Debug for AmmPositionEntry
Source§impl<'de> Deserialize<'de> for AmmPositionEntry
impl<'de> Deserialize<'de> for AmmPositionEntry
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 AmmPositionEntry
impl RefUnwindSafe for AmmPositionEntry
impl Send for AmmPositionEntry
impl Sync for AmmPositionEntry
impl Unpin for AmmPositionEntry
impl UnsafeUnpin for AmmPositionEntry
impl UnwindSafe for AmmPositionEntry
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