#[non_exhaustive]pub enum OrderType {
Market,
Limit,
Stop,
MarketIfTouched,
TakeProfit,
StopLoss,
GuaranteedStopLoss,
TrailingStopLoss,
FixedPrice,
Unknown(String),
}Expand description
The type of the Order.
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.
Market
A Market Order
Limit
A Limit Order
Stop
A Stop Order
MarketIfTouched
A Market-if-touched Order
TakeProfit
A Take Profit Order
StopLoss
A Stop Loss Order
GuaranteedStopLoss
A Guaranteed Stop Loss Order
TrailingStopLoss
A Trailing Stop Loss Order
FixedPrice
A Fixed Price Order
Unknown(String)
An unrecognized provider value, preserved for forward compatibility.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for OrderType
impl<'de> Deserialize<'de> for OrderType
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 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