pub struct WithExecutionReportPositionImpact<T> {
pub inner: T,
pub position_impact: ExecutionReportPositionImpact,
}Expand description
Adds position impact parameters reported by the execution.
No #[non_exhaustive]: these are client-facing convenience structs meant to be constructed via
struct literals from external crates.
Fields§
§inner: T§position_impact: ExecutionReportPositionImpactTrait Implementations§
Source§impl<T: Clone> Clone for WithExecutionReportPositionImpact<T>
impl<T: Clone> Clone for WithExecutionReportPositionImpact<T>
Source§fn clone(&self) -> WithExecutionReportPositionImpact<T>
fn clone(&self) -> WithExecutionReportPositionImpact<T>
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<T: Debug> Debug for WithExecutionReportPositionImpact<T>
impl<T: Debug> Debug for WithExecutionReportPositionImpact<T>
Source§impl<T> HasAccountId for WithExecutionReportPositionImpact<T>where
T: HasAccountId,
impl<T> HasAccountId for WithExecutionReportPositionImpact<T>where
T: HasAccountId,
fn account_id(&self) -> Result<AccountId, RequestFieldAccessError>
Source§impl<T> HasAutoBorrow for WithExecutionReportPositionImpact<T>where
T: HasAutoBorrow,
impl<T> HasAutoBorrow for WithExecutionReportPositionImpact<T>where
T: HasAutoBorrow,
fn auto_borrow(&self) -> Result<bool, RequestFieldAccessError>
Source§impl<T> HasClosePosition for WithExecutionReportPositionImpact<T>where
T: HasClosePosition,
impl<T> HasClosePosition for WithExecutionReportPositionImpact<T>where
T: HasClosePosition,
fn close_position(&self) -> Result<bool, RequestFieldAccessError>
Source§impl<T> HasExecutionReportIsFinal for WithExecutionReportPositionImpact<T>where
T: HasExecutionReportIsFinal,
impl<T> HasExecutionReportIsFinal for WithExecutionReportPositionImpact<T>where
T: HasExecutionReportIsFinal,
Source§impl<T> HasExecutionReportLastTrade for WithExecutionReportPositionImpact<T>where
T: HasExecutionReportLastTrade,
impl<T> HasExecutionReportLastTrade for WithExecutionReportPositionImpact<T>where
T: HasExecutionReportLastTrade,
fn last_trade(&self) -> Result<Option<Trade>, RequestFieldAccessError>
Source§impl<T> HasExecutionReportPositionEffect for WithExecutionReportPositionImpact<T>
impl<T> HasExecutionReportPositionEffect for WithExecutionReportPositionImpact<T>
fn position_effect( &self, ) -> Result<Option<PositionEffect>, RequestFieldAccessError>
Source§impl<T> HasExecutionReportPositionSide for WithExecutionReportPositionImpact<T>
impl<T> HasExecutionReportPositionSide for WithExecutionReportPositionImpact<T>
fn position_side(&self) -> Result<Option<PositionSide>, RequestFieldAccessError>
Source§impl<T> HasFee for WithExecutionReportPositionImpact<T>where
T: HasFee,
impl<T> HasFee for WithExecutionReportPositionImpact<T>where
T: HasFee,
Source§impl<T> HasInstrument for WithExecutionReportPositionImpact<T>where
T: HasInstrument,
impl<T> HasInstrument for WithExecutionReportPositionImpact<T>where
T: HasInstrument,
fn instrument(&self) -> Result<&Instrument, RequestFieldAccessError>
Source§impl<T> HasLeavesQuantity for WithExecutionReportPositionImpact<T>where
T: HasLeavesQuantity,
impl<T> HasLeavesQuantity for WithExecutionReportPositionImpact<T>where
T: HasLeavesQuantity,
fn leaves_quantity(&self) -> Result<Quantity, RequestFieldAccessError>
Source§impl<T> HasLock for WithExecutionReportPositionImpact<T>where
T: HasLock,
impl<T> HasLock for WithExecutionReportPositionImpact<T>where
T: HasLock,
fn lock(&self) -> Result<PreTradeLock, RequestFieldAccessError>
Source§impl<T> HasOrderCollateralAsset for WithExecutionReportPositionImpact<T>where
T: HasOrderCollateralAsset,
impl<T> HasOrderCollateralAsset for WithExecutionReportPositionImpact<T>where
T: HasOrderCollateralAsset,
fn collateral_asset(&self) -> Result<Option<&Asset>, RequestFieldAccessError>
Source§impl<T> HasOrderLeverage for WithExecutionReportPositionImpact<T>where
T: HasOrderLeverage,
impl<T> HasOrderLeverage for WithExecutionReportPositionImpact<T>where
T: HasOrderLeverage,
Source§impl<T> HasOrderPositionSide for WithExecutionReportPositionImpact<T>where
T: HasOrderPositionSide,
impl<T> HasOrderPositionSide for WithExecutionReportPositionImpact<T>where
T: HasOrderPositionSide,
fn position_side(&self) -> Result<Option<PositionSide>, RequestFieldAccessError>
Source§impl<T> HasOrderPrice for WithExecutionReportPositionImpact<T>where
T: HasOrderPrice,
impl<T> HasOrderPrice for WithExecutionReportPositionImpact<T>where
T: HasOrderPrice,
Source§impl<T> HasPnl for WithExecutionReportPositionImpact<T>where
T: HasPnl,
impl<T> HasPnl for WithExecutionReportPositionImpact<T>where
T: HasPnl,
Source§impl<T> HasReduceOnly for WithExecutionReportPositionImpact<T>where
T: HasReduceOnly,
impl<T> HasReduceOnly for WithExecutionReportPositionImpact<T>where
T: HasReduceOnly,
fn reduce_only(&self) -> Result<bool, RequestFieldAccessError>
Source§impl<T> HasSide for WithExecutionReportPositionImpact<T>where
T: HasSide,
impl<T> HasSide for WithExecutionReportPositionImpact<T>where
T: HasSide,
Source§impl<T> HasTradeAmount for WithExecutionReportPositionImpact<T>where
T: HasTradeAmount,
impl<T> HasTradeAmount for WithExecutionReportPositionImpact<T>where
T: HasTradeAmount,
fn trade_amount(&self) -> Result<TradeAmount, RequestFieldAccessError>
Source§impl<T: PartialEq> PartialEq for WithExecutionReportPositionImpact<T>
impl<T: PartialEq> PartialEq for WithExecutionReportPositionImpact<T>
Source§fn eq(&self, other: &WithExecutionReportPositionImpact<T>) -> bool
fn eq(&self, other: &WithExecutionReportPositionImpact<T>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<T: Eq> Eq for WithExecutionReportPositionImpact<T>
impl<T> StructuralPartialEq for WithExecutionReportPositionImpact<T>
Auto Trait Implementations§
impl<T> Freeze for WithExecutionReportPositionImpact<T>where
T: Freeze,
impl<T> RefUnwindSafe for WithExecutionReportPositionImpact<T>where
T: RefUnwindSafe,
impl<T> Send for WithExecutionReportPositionImpact<T>where
T: Send,
impl<T> Sync for WithExecutionReportPositionImpact<T>where
T: Sync,
impl<T> Unpin for WithExecutionReportPositionImpact<T>where
T: Unpin,
impl<T> UnsafeUnpin for WithExecutionReportPositionImpact<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for WithExecutionReportPositionImpact<T>where
T: UnwindSafe,
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