pub struct WithAccountAdjustmentBounds<T> {
pub inner: T,
pub bounds: AccountAdjustmentBounds,
}Expand description
Adds post-adjustment inclusive limits.
Fields§
§inner: T§bounds: AccountAdjustmentBoundsTrait Implementations§
Source§impl<T: Clone> Clone for WithAccountAdjustmentBounds<T>
impl<T: Clone> Clone for WithAccountAdjustmentBounds<T>
Source§fn clone(&self) -> WithAccountAdjustmentBounds<T>
fn clone(&self) -> WithAccountAdjustmentBounds<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 WithAccountAdjustmentBounds<T>
impl<T: Debug> Debug for WithAccountAdjustmentBounds<T>
Source§impl<T> HasAccountAdjustmentBalanceAverageEntryPrice for WithAccountAdjustmentBounds<T>
impl<T> HasAccountAdjustmentBalanceAverageEntryPrice for WithAccountAdjustmentBounds<T>
fn balance_average_entry_price( &self, ) -> Result<Option<Price>, RequestFieldAccessError>
Source§impl<T> HasAccountAdjustmentPending for WithAccountAdjustmentBounds<T>where
T: HasAccountAdjustmentPending,
impl<T> HasAccountAdjustmentPending for WithAccountAdjustmentBounds<T>where
T: HasAccountAdjustmentPending,
fn pending(&self) -> Result<Option<AdjustmentAmount>, RequestFieldAccessError>
Source§impl<T> HasAccountAdjustmentPendingLowerBound for WithAccountAdjustmentBounds<T>
impl<T> HasAccountAdjustmentPendingLowerBound for WithAccountAdjustmentBounds<T>
fn pending_lower(&self) -> Result<Option<PositionSize>, RequestFieldAccessError>
Source§impl<T> HasAccountAdjustmentPendingUpperBound for WithAccountAdjustmentBounds<T>
impl<T> HasAccountAdjustmentPendingUpperBound for WithAccountAdjustmentBounds<T>
fn pending_upper(&self) -> Result<Option<PositionSize>, RequestFieldAccessError>
Source§impl<T> HasAccountAdjustmentPositionLeverage for WithAccountAdjustmentBounds<T>where
T: HasAccountAdjustmentPositionLeverage,
impl<T> HasAccountAdjustmentPositionLeverage for WithAccountAdjustmentBounds<T>where
T: HasAccountAdjustmentPositionLeverage,
fn position_leverage(&self) -> Result<Option<Leverage>, RequestFieldAccessError>
Source§impl<T> HasAccountAdjustmentReserved for WithAccountAdjustmentBounds<T>where
T: HasAccountAdjustmentReserved,
impl<T> HasAccountAdjustmentReserved for WithAccountAdjustmentBounds<T>where
T: HasAccountAdjustmentReserved,
fn reserved(&self) -> Result<Option<AdjustmentAmount>, RequestFieldAccessError>
Source§impl<T> HasAccountAdjustmentReservedLowerBound for WithAccountAdjustmentBounds<T>
impl<T> HasAccountAdjustmentReservedLowerBound for WithAccountAdjustmentBounds<T>
fn reserved_lower( &self, ) -> Result<Option<PositionSize>, RequestFieldAccessError>
Source§impl<T> HasAccountAdjustmentReservedUpperBound for WithAccountAdjustmentBounds<T>
impl<T> HasAccountAdjustmentReservedUpperBound for WithAccountAdjustmentBounds<T>
fn reserved_upper( &self, ) -> Result<Option<PositionSize>, RequestFieldAccessError>
Source§impl<T> HasAccountAdjustmentTotal for WithAccountAdjustmentBounds<T>where
T: HasAccountAdjustmentTotal,
impl<T> HasAccountAdjustmentTotal for WithAccountAdjustmentBounds<T>where
T: HasAccountAdjustmentTotal,
fn total(&self) -> Result<Option<AdjustmentAmount>, RequestFieldAccessError>
Source§impl<T> HasAccountAdjustmentTotalLowerBound for WithAccountAdjustmentBounds<T>
impl<T> HasAccountAdjustmentTotalLowerBound for WithAccountAdjustmentBounds<T>
fn total_lower(&self) -> Result<Option<PositionSize>, RequestFieldAccessError>
Source§impl<T> HasAccountAdjustmentTotalUpperBound for WithAccountAdjustmentBounds<T>
impl<T> HasAccountAdjustmentTotalUpperBound for WithAccountAdjustmentBounds<T>
fn total_upper(&self) -> Result<Option<PositionSize>, RequestFieldAccessError>
Source§impl<T> HasAverageEntryPrice for WithAccountAdjustmentBounds<T>where
T: HasAverageEntryPrice,
impl<T> HasAverageEntryPrice for WithAccountAdjustmentBounds<T>where
T: HasAverageEntryPrice,
fn average_entry_price(&self) -> Result<Price, RequestFieldAccessError>
Source§impl<T> HasBalanceAsset for WithAccountAdjustmentBounds<T>where
T: HasBalanceAsset,
impl<T> HasBalanceAsset for WithAccountAdjustmentBounds<T>where
T: HasBalanceAsset,
fn balance_asset(&self) -> Result<&Asset, RequestFieldAccessError>
Source§impl<T> HasCollateralAsset for WithAccountAdjustmentBounds<T>where
T: HasCollateralAsset,
impl<T> HasCollateralAsset for WithAccountAdjustmentBounds<T>where
T: HasCollateralAsset,
fn collateral_asset(&self) -> Result<&Asset, RequestFieldAccessError>
Source§impl<T> HasPositionInstrument for WithAccountAdjustmentBounds<T>where
T: HasPositionInstrument,
impl<T> HasPositionInstrument for WithAccountAdjustmentBounds<T>where
T: HasPositionInstrument,
fn position_instrument(&self) -> Result<&Instrument, RequestFieldAccessError>
Source§impl<T> HasPositionMode for WithAccountAdjustmentBounds<T>where
T: HasPositionMode,
impl<T> HasPositionMode for WithAccountAdjustmentBounds<T>where
T: HasPositionMode,
fn position_mode(&self) -> Result<PositionMode, RequestFieldAccessError>
Source§impl<T: PartialEq> PartialEq for WithAccountAdjustmentBounds<T>
impl<T: PartialEq> PartialEq for WithAccountAdjustmentBounds<T>
Source§fn eq(&self, other: &WithAccountAdjustmentBounds<T>) -> bool
fn eq(&self, other: &WithAccountAdjustmentBounds<T>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<T: Eq> Eq for WithAccountAdjustmentBounds<T>
impl<T> StructuralPartialEq for WithAccountAdjustmentBounds<T>
Auto Trait Implementations§
impl<T> Freeze for WithAccountAdjustmentBounds<T>where
T: Freeze,
impl<T> RefUnwindSafe for WithAccountAdjustmentBounds<T>where
T: RefUnwindSafe,
impl<T> Send for WithAccountAdjustmentBounds<T>where
T: Send,
impl<T> Sync for WithAccountAdjustmentBounds<T>where
T: Sync,
impl<T> Unpin for WithAccountAdjustmentBounds<T>where
T: Unpin,
impl<T> UnsafeUnpin for WithAccountAdjustmentBounds<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for WithAccountAdjustmentBounds<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