#[non_exhaustive]pub enum OrderFillReason {
LimitOrder,
StopOrder,
MarketIfTouchedOrder,
TakeProfitOrder,
StopLossOrder,
TrailingStopLossOrder,
MarketOrder,
MarketOrderTradeClose,
MarketOrderPositionCloseout,
MarketOrderMarginCloseout,
MarketOrderDelayedTradeClose,
Other(String),
}Expand description
The reason that an Order was filled
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.
LimitOrder
LIMIT_ORDER.
StopOrder
STOP_ORDER.
MarketIfTouchedOrder
MARKET_IF_TOUCHED_ORDER.
TakeProfitOrder
TAKE_PROFIT_ORDER.
StopLossOrder
STOP_LOSS_ORDER.
TrailingStopLossOrder
TRAILING_STOP_LOSS_ORDER.
MarketOrder
MARKET_ORDER.
MarketOrderTradeClose
MARKET_ORDER_TRADE_CLOSE.
MarketOrderPositionCloseout
MARKET_ORDER_POSITION_CLOSEOUT.
MarketOrderMarginCloseout
MARKET_ORDER_MARGIN_CLOSEOUT.
MarketOrderDelayedTradeClose
MARKET_ORDER_DELAYED_TRADE_CLOSE.
Other(String)
A value not (yet) known to this version of the SDK.
Implementations§
Trait Implementations§
Source§impl Clone for OrderFillReason
impl Clone for OrderFillReason
Source§fn clone(&self) -> OrderFillReason
fn clone(&self) -> OrderFillReason
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 OrderFillReason
impl Debug for OrderFillReason
Source§impl<'de> Deserialize<'de> for OrderFillReason
impl<'de> Deserialize<'de> for OrderFillReason
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
Source§impl Display for OrderFillReason
impl Display for OrderFillReason
impl Eq for OrderFillReason
Source§impl From<&str> for OrderFillReason
impl From<&str> for OrderFillReason
Source§impl From<String> for OrderFillReason
impl From<String> for OrderFillReason
Source§impl FromStr for OrderFillReason
impl FromStr for OrderFillReason
Source§impl Hash for OrderFillReason
impl Hash for OrderFillReason
Source§impl PartialEq for OrderFillReason
impl PartialEq for OrderFillReason
Source§impl Serialize for OrderFillReason
impl Serialize for OrderFillReason
impl StructuralPartialEq for OrderFillReason
Auto Trait Implementations§
impl Freeze for OrderFillReason
impl RefUnwindSafe for OrderFillReason
impl Send for OrderFillReason
impl Sync for OrderFillReason
impl Unpin for OrderFillReason
impl UnsafeUnpin for OrderFillReason
impl UnwindSafe for OrderFillReason
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.