#[repr(C)]pub enum ContingencyType {
NoContingency = 0,
Oco = 1,
Oto = 2,
Ouo = 3,
}Expand description
The order contingency type which specifies the behavior of linked orders.
Variants§
NoContingency = 0
Not a contingent order.
Oco = 1
One-Cancels-the-Other.
Oto = 2
One-Triggers-the-Other.
Ouo = 3
One-Updates-the-Other (by proportional quantity).
Implementations§
Trait Implementations§
Source§impl AsRef<str> for ContingencyType
impl AsRef<str> for ContingencyType
Source§impl Clone for ContingencyType
impl Clone for ContingencyType
Source§fn clone(&self) -> ContingencyType
fn clone(&self) -> ContingencyType
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 ContingencyType
Source§impl Debug for ContingencyType
impl Debug for ContingencyType
Source§impl Default for ContingencyType
impl Default for ContingencyType
Source§fn default() -> ContingencyType
fn default() -> ContingencyType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ContingencyType
impl<'de> Deserialize<'de> for ContingencyType
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 Display for ContingencyType
impl Display for ContingencyType
impl Eq for ContingencyType
Source§impl FromStr for ContingencyType
impl FromStr for ContingencyType
Source§impl Hash for ContingencyType
impl Hash for ContingencyType
Source§impl IntoEnumIterator for ContingencyType
impl IntoEnumIterator for ContingencyType
type Iterator = ContingencyTypeIter
fn iter() -> ContingencyTypeIter ⓘ
Source§impl Ord for ContingencyType
impl Ord for ContingencyType
Source§fn cmp(&self, other: &ContingencyType) -> Ordering
fn cmp(&self, other: &ContingencyType) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ContingencyType
impl PartialEq for ContingencyType
Source§fn eq(&self, other: &ContingencyType) -> bool
fn eq(&self, other: &ContingencyType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ContingencyType
impl PartialOrd for ContingencyType
Source§impl Serialize for ContingencyType
impl Serialize for ContingencyType
impl StructuralPartialEq for ContingencyType
Auto Trait Implementations§
impl Freeze for ContingencyType
impl RefUnwindSafe for ContingencyType
impl Send for ContingencyType
impl Sync for ContingencyType
impl Unpin for ContingencyType
impl UnsafeUnpin for ContingencyType
impl UnwindSafe for ContingencyType
Blanket Implementations§
impl<T> Allocation for T
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.