#[non_exhaustive]pub struct MarketOrderPositionCloseout {
pub instrument: Option<InstrumentName>,
pub units: Option<String>,
}Expand description
A MarketOrderPositionCloseout specifies the extensions to a Market Order when it has been created to closeout a specific Position.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.instrument: Option<InstrumentName>The instrument of the Position being closed out.
units: Option<String>Indication of how much of the Position to close. Either “ALL”, or a DecimalNumber reflection a partial close of the Trade. The DecimalNumber must always be positive, and represent a number that doesn’t exceed the absolute size of the Position.
Trait Implementations§
Source§impl Clone for MarketOrderPositionCloseout
impl Clone for MarketOrderPositionCloseout
Source§fn clone(&self) -> MarketOrderPositionCloseout
fn clone(&self) -> MarketOrderPositionCloseout
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 MarketOrderPositionCloseout
impl Debug for MarketOrderPositionCloseout
Source§impl<'de> Deserialize<'de> for MarketOrderPositionCloseout
impl<'de> Deserialize<'de> for MarketOrderPositionCloseout
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
impl StructuralPartialEq for MarketOrderPositionCloseout
Auto Trait Implementations§
impl Freeze for MarketOrderPositionCloseout
impl RefUnwindSafe for MarketOrderPositionCloseout
impl Send for MarketOrderPositionCloseout
impl Sync for MarketOrderPositionCloseout
impl Unpin for MarketOrderPositionCloseout
impl UnsafeUnpin for MarketOrderPositionCloseout
impl UnwindSafe for MarketOrderPositionCloseout
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