Enum TimeInForce
#[non_exhaustive]pub enum TimeInForce {
GoodTilCancelled,
ImmediateOrCancel,
FillOrKill,
PostOnly,
}Expand description
How long an order stays live.
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.
GoodTilCancelled
Rest until filled or cancelled.
ImmediateOrCancel
Fill what is available immediately, cancel the rest.
FillOrKill
Fill entirely and immediately, or not at all.
PostOnly
Rest only if it does not take liquidity; otherwise reject.
Trait Implementations§
§impl Clone for TimeInForce
impl Clone for TimeInForce
impl Copy for TimeInForce
§impl Debug for TimeInForce
impl Debug for TimeInForce
impl Eq for TimeInForce
§impl Hash for TimeInForce
impl Hash for TimeInForce
§impl PartialEq for TimeInForce
impl PartialEq for TimeInForce
impl StructuralPartialEq for TimeInForce
Auto Trait Implementations§
impl Freeze 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.