#[non_exhaustive]pub enum TimeInForce {
Day,
Gtc,
Ioc,
Fok,
}Expand description
How long an order remains active before expiring.
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.
Day
Good for the current trading day only.
Gtc
Good till cancelled.
Ioc
Immediate or cancel — fill what you can, cancel the rest.
Fok
Fill or kill — fill the entire order or cancel it.
Trait Implementations§
Source§impl Clone for TimeInForce
impl Clone for TimeInForce
Source§fn clone(&self) -> TimeInForce
fn clone(&self) -> TimeInForce
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TimeInForce
Source§impl Debug for TimeInForce
impl Debug for TimeInForce
Source§impl Default for TimeInForce
impl Default for TimeInForce
Source§fn default() -> TimeInForce
fn default() -> TimeInForce
Returns the “default value” for a type. Read more
Source§impl Display for TimeInForce
impl Display for TimeInForce
impl Eq for TimeInForce
Source§impl From<TimeInForce> for Duration
impl From<TimeInForce> for Duration
Source§fn from(tif: TimeInForce) -> Self
fn from(tif: TimeInForce) -> Self
Converts to this type from the input type.
Source§impl From<TimeInForce> for Duration
impl From<TimeInForce> for Duration
Source§fn from(tif: TimeInForce) -> Self
fn from(tif: TimeInForce) -> Self
Converts to this type from the input type.
Source§impl From<TimeInForce> for Duration
impl From<TimeInForce> for Duration
Source§fn from(tif: TimeInForce) -> Self
fn from(tif: TimeInForce) -> Self
Converts to this type from the input type.
Source§impl FromStr for TimeInForce
impl FromStr for TimeInForce
Source§impl Hash for TimeInForce
impl Hash for TimeInForce
Source§impl PartialEq for TimeInForce
impl PartialEq for TimeInForce
Source§fn eq(&self, other: &TimeInForce) -> bool
fn eq(&self, other: &TimeInForce) -> bool
Tests for
self and other values to be equal, and is used by ==.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