#[non_exhaustive]pub enum TimeInForce {
GoodTillDate(Timestamp),
GoodTillCancel,
ImmediateOrCancel,
FillOrKill,
MarketOnOpen,
}Expand description
How long an order stays in force.
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.
GoodTillDate(Timestamp)
Until the given moment.
GoodTillCancel
Until it is executed or cancelled.
ImmediateOrCancel
Whatever can be executed at once is, the rest is cancelled.
FillOrKill
Executed at once in full or not at all.
MarketOnOpen
Executed when the market opens.
Trait Implementations§
Source§impl Clone for TimeInForce
impl Clone for TimeInForce
impl Copy for TimeInForce
Source§impl Debug for TimeInForce
impl Debug for TimeInForce
impl Eq for TimeInForce
Source§impl Hash for TimeInForce
impl Hash for TimeInForce
Source§impl PartialEq for TimeInForce
impl PartialEq for TimeInForce
impl StructuralPartialEq for TimeInForce
Auto Trait Implementations§
impl Forget for TimeInForce
impl Freeze for TimeInForce
impl Move for TimeInForce
impl RefUnwindSafe for TimeInForce
impl Send for TimeInForce
impl Sync for TimeInForce
impl Unpin for TimeInForce
impl UnsafeUnpin for TimeInForce
impl UnwindSafe for TimeInForce
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