#[non_exhaustive]pub enum StopPriceLinkType {
Value,
Percent,
Tick,
Unknown(String),
}Expand description
How the stop offset is interpreted.
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.
Value
Absolute dollar offset.
Percent
Percentage offset.
Tick
Offset measured in ticks.
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 Clone for StopPriceLinkType
impl Clone for StopPriceLinkType
Source§fn clone(&self) -> StopPriceLinkType
fn clone(&self) -> StopPriceLinkType
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 moreSource§impl Debug for StopPriceLinkType
impl Debug for StopPriceLinkType
Source§impl<'de> Deserialize<'de> for StopPriceLinkType
impl<'de> Deserialize<'de> for StopPriceLinkType
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 StopPriceLinkType
impl Display for StopPriceLinkType
Source§impl From<&str> for StopPriceLinkType
impl From<&str> for StopPriceLinkType
Source§fn from(s: &str) -> StopPriceLinkType
fn from(s: &str) -> StopPriceLinkType
Converts to this type from the input type.
Source§impl From<StopPriceLinkType> for String
impl From<StopPriceLinkType> for String
Source§fn from(v: StopPriceLinkType) -> Self
fn from(v: StopPriceLinkType) -> Self
Converts to this type from the input type.
Source§impl From<String> for StopPriceLinkType
impl From<String> for StopPriceLinkType
Source§impl FromStr for StopPriceLinkType
impl FromStr for StopPriceLinkType
Source§impl Hash for StopPriceLinkType
impl Hash for StopPriceLinkType
Source§impl PartialEq for StopPriceLinkType
impl PartialEq for StopPriceLinkType
Source§fn eq(&self, other: &StopPriceLinkType) -> bool
fn eq(&self, other: &StopPriceLinkType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for StopPriceLinkType
impl Serialize for StopPriceLinkType
impl Eq for StopPriceLinkType
impl StructuralPartialEq for StopPriceLinkType
Auto Trait Implementations§
impl Freeze for StopPriceLinkType
impl RefUnwindSafe for StopPriceLinkType
impl Send for StopPriceLinkType
impl Sync for StopPriceLinkType
impl Unpin for StopPriceLinkType
impl UnsafeUnpin for StopPriceLinkType
impl UnwindSafe for StopPriceLinkType
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.