#[non_exhaustive]pub enum StopType {
Standard,
Bid,
Ask,
Last,
Mark,
Unknown(String),
}Expand description
What price feed triggers a stop order.
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.
Standard
Default stop type for the venue.
Bid
Trigger when the bid touches the stop.
Ask
Trigger when the ask touches the stop.
Last
Trigger when the last trade touches the stop.
Mark
Trigger when the mark touches the stop.
Unknown(String)
A wire value Schwab sent that this crate does not recognize. The raw string is preserved so callers can still route on it.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for StopType
impl<'de> Deserialize<'de> for StopType
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
impl Eq for StopType
impl StructuralPartialEq for StopType
Auto Trait Implementations§
impl Freeze for StopType
impl RefUnwindSafe for StopType
impl Send for StopType
impl Sync for StopType
impl Unpin for StopType
impl UnsafeUnpin for StopType
impl UnwindSafe for StopType
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.