#[repr(C)]pub enum TriggerTypeOptional {
NoTrigger = 0,
Default = 1,
LastPrice = 2,
MarkPrice = 3,
IndexPrice = 4,
BidAsk = 5,
DoubleLast = 6,
DoubleBidAsk = 7,
LastOrBidAsk = 8,
MidPoint = 9,
}Expand description
The stable zero-inclusive trigger-type representation required by the existing C ABI.
Use Option<TriggerType> for ordinary Rust optionality.
Variants§
NoTrigger = 0
Compatibility value for no specified trigger type.
This value may be removed in a future version.
Default = 1
The venue default trigger type.
LastPrice = 2
The last traded price.
MarkPrice = 3
The mark price.
IndexPrice = 4
The index price.
BidAsk = 5
The bid or ask price.
DoubleLast = 6
Two consecutive last prices.
DoubleBidAsk = 7
Two consecutive bid or ask prices.
LastOrBidAsk = 8
The last price or bid or ask price.
MidPoint = 9
The midpoint price.
Implementations§
Source§impl TriggerTypeOptional
impl TriggerTypeOptional
pub const fn as_option(self) -> Option<TriggerType>
Trait Implementations§
Source§impl AsRef<str> for TriggerTypeOptional
impl AsRef<str> for TriggerTypeOptional
Source§impl Clone for TriggerTypeOptional
impl Clone for TriggerTypeOptional
Source§fn clone(&self) -> TriggerTypeOptional
fn clone(&self) -> TriggerTypeOptional
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 TriggerTypeOptional
Source§impl Debug for TriggerTypeOptional
impl Debug for TriggerTypeOptional
Source§impl Default for TriggerTypeOptional
impl Default for TriggerTypeOptional
Source§fn default() -> TriggerTypeOptional
fn default() -> TriggerTypeOptional
Returns the “default value” for a type. Read more
Source§impl Display for TriggerTypeOptional
impl Display for TriggerTypeOptional
impl Eq for TriggerTypeOptional
Source§impl From<Option<TriggerType>> for TriggerTypeOptional
impl From<Option<TriggerType>> for TriggerTypeOptional
Source§fn from(value: Option<TriggerType>) -> Self
fn from(value: Option<TriggerType>) -> Self
Converts to this type from the input type.
Source§impl FromStr for TriggerTypeOptional
impl FromStr for TriggerTypeOptional
Source§impl Hash for TriggerTypeOptional
impl Hash for TriggerTypeOptional
Source§impl PartialEq for TriggerTypeOptional
impl PartialEq for TriggerTypeOptional
impl StructuralPartialEq for TriggerTypeOptional
Auto Trait Implementations§
impl Freeze for TriggerTypeOptional
impl RefUnwindSafe for TriggerTypeOptional
impl Send for TriggerTypeOptional
impl Sync for TriggerTypeOptional
impl Unpin for TriggerTypeOptional
impl UnsafeUnpin for TriggerTypeOptional
impl UnwindSafe for TriggerTypeOptional
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more