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