pub enum TimeInForce {
GoodTilCancel,
GoodTilDate(DateTime<Utc>),
GoodTilDay,
ImmediateOrCancel,
FillOrKill,
AtTheOpen,
AtTheClose,
}
Variants§
GoodTilCancel
GoodTilDate(DateTime<Utc>)
GoodTilDay
Day order–the specific time which this expires will be dependent on the venue
ImmediateOrCancel
FillOrKill
AtTheOpen
AtTheClose
Implementations§
Source§impl TimeInForce
impl TimeInForce
pub fn good_til_date(&self) -> Option<DateTime<Utc>>
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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TimeInForce
impl Debug for TimeInForce
Source§impl<'de> Deserialize<'de> for TimeInForce
impl<'de> Deserialize<'de> for TimeInForce
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'_derivative_strum> From<&'_derivative_strum TimeInForce> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum TimeInForce> for &'static str
Source§fn from(x: &'_derivative_strum TimeInForce) -> &'static str
fn from(x: &'_derivative_strum TimeInForce) -> &'static str
Converts to this type from the input type.
Source§impl From<TimeInForce> for &'static str
impl From<TimeInForce> for &'static str
Source§fn from(x: TimeInForce) -> &'static str
fn from(x: TimeInForce) -> &'static str
Converts to this type from the input type.
Source§impl JsonSchema for TimeInForce
impl JsonSchema for TimeInForce
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreSource§impl PartialEq for TimeInForce
impl PartialEq for TimeInForce
Source§impl Serialize for TimeInForce
impl Serialize for TimeInForce
impl Copy for TimeInForce
impl Eq 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 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