#[repr(u8)]pub enum TimeInForce {
GTC = 0,
GTX = 1,
FOK = 2,
IOC = 3,
Unsupported = 255,
}
Expand description
Time In Force
Variants§
GTC = 0
Good ’Til Canceled
GTX = 1
Post-only
FOK = 2
Fill or Kill
IOC = 3
Immediate or Cancel
Unsupported = 255
This occurs when the Connector
receives a time-in-force
value that does not have a corresponding enum value.
Trait Implementations§
Source§impl AsRef<str> for TimeInForce
impl AsRef<str> for TimeInForce
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for TimeInForce
impl<'__de, __Context> BorrowDecode<'__de, __Context> for TimeInForce
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl Clone for TimeInForce
impl Clone for TimeInForce
Source§fn clone(&self) -> TimeInForce
fn clone(&self) -> TimeInForce
Returns a copy 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<__Context> Decode<__Context> for TimeInForce
impl<__Context> Decode<__Context> for TimeInForce
Source§impl Encode for TimeInForce
impl Encode for TimeInForce
Source§impl PartialEq for TimeInForce
impl PartialEq 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
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.