#[non_exhaustive]pub enum MarketOrderReason {
ClientOrder,
TradeClose,
PositionCloseout,
MarginCloseout,
DelayedTradeClose,
Unknown(String),
}Expand description
The reason that the Market Order was created
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ClientOrder
The Market Order was created at the request of a client
TradeClose
The Market Order was created to close a Trade at the request of a client
PositionCloseout
The Market Order was created to close a Position at the request of a client
MarginCloseout
The Market Order was created as part of a Margin Closeout
DelayedTradeClose
The Market Order was created to close a trade marked for delayed closure
Unknown(String)
An unrecognized provider value, preserved for forward compatibility.
Implementations§
Trait Implementations§
Source§impl Clone for MarketOrderReason
impl Clone for MarketOrderReason
Source§impl Debug for MarketOrderReason
impl Debug for MarketOrderReason
Source§impl<'de> Deserialize<'de> for MarketOrderReason
impl<'de> Deserialize<'de> for MarketOrderReason
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MarketOrderReason
Source§impl Hash for MarketOrderReason
impl Hash for MarketOrderReason
Source§impl PartialEq for MarketOrderReason
impl PartialEq for MarketOrderReason
Source§impl Serialize for MarketOrderReason
impl Serialize for MarketOrderReason
impl StructuralPartialEq for MarketOrderReason
Auto Trait Implementations§
impl Freeze for MarketOrderReason
impl RefUnwindSafe for MarketOrderReason
impl Send for MarketOrderReason
impl Sync for MarketOrderReason
impl Unpin for MarketOrderReason
impl UnsafeUnpin for MarketOrderReason
impl UnwindSafe for MarketOrderReason
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