#[non_exhaustive]pub enum CancellableOrderType {
Limit,
Stop,
MarketIfTouched,
TakeProfit,
StopLoss,
GuaranteedStopLoss,
TrailingStopLoss,
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.
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
Unknown(String)
An unrecognized provider value, preserved for forward compatibility.
Implementations§
Trait Implementations§
Source§impl Clone for CancellableOrderType
impl Clone for CancellableOrderType
Source§impl Debug for CancellableOrderType
impl Debug for CancellableOrderType
Source§impl<'de> Deserialize<'de> for CancellableOrderType
impl<'de> Deserialize<'de> for CancellableOrderType
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 CancellableOrderType
Source§impl Hash for CancellableOrderType
impl Hash for CancellableOrderType
Source§impl PartialEq for CancellableOrderType
impl PartialEq for CancellableOrderType
Source§impl Serialize for CancellableOrderType
impl Serialize for CancellableOrderType
impl StructuralPartialEq for CancellableOrderType
Auto Trait Implementations§
impl Freeze for CancellableOrderType
impl RefUnwindSafe for CancellableOrderType
impl Send for CancellableOrderType
impl Sync for CancellableOrderType
impl Unpin for CancellableOrderType
impl UnsafeUnpin for CancellableOrderType
impl UnwindSafe for CancellableOrderType
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