#[non_exhaustive]pub enum OrderType {
Limit,
Market,
StopLimit,
Stop,
TrailingStop,
JoinBid,
JoinAsk,
Unknown(i32),
}Expand description
A ProjectX order type.
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.
Limit
Limit order.
Market
Market order.
StopLimit
Stop-limit response code.
The current provider request reference does not document this type for order placement or bracket creation, so validated request builders reject it while response decoding preserves the wire value.
Stop
Stop order.
TrailingStop
Trailing-stop order.
JoinBid
Join the best bid.
JoinAsk
Join the best ask.
Unknown(i32)
Provider code not known to this crate version.
Implementations§
Trait Implementations§
impl Copy for OrderType
Source§impl<'de> Deserialize<'de> for OrderType
impl<'de> Deserialize<'de> for OrderType
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 Eq for OrderType
impl StructuralPartialEq for OrderType
Auto Trait Implementations§
impl Freeze for OrderType
impl RefUnwindSafe for OrderType
impl Send for OrderType
impl Sync for OrderType
impl Unpin for OrderType
impl UnsafeUnpin for OrderType
impl UnwindSafe for OrderType
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