#[non_exhaustive]pub enum OrderLegType {
Equity,
Option,
Index,
MutualFund,
CashEquivalent,
FixedIncome,
Currency,
CollectiveInvestment,
Unknown(String),
}Expand description
Asset class of an order leg.
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.
Equity
Listed equity.
Option
Listed option.
Index
Index.
MutualFund
Mutual fund.
CashEquivalent
Cash equivalent.
FixedIncome
Fixed income.
Currency
Currency.
CollectiveInvestment
Collective investment vehicle.
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 OrderLegType
impl Clone for OrderLegType
Source§fn clone(&self) -> OrderLegType
fn clone(&self) -> OrderLegType
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 OrderLegType
impl Debug for OrderLegType
Source§impl<'de> Deserialize<'de> for OrderLegType
impl<'de> Deserialize<'de> for OrderLegType
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 OrderLegType
impl Display for OrderLegType
Source§impl From<&str> for OrderLegType
impl From<&str> for OrderLegType
Source§fn from(s: &str) -> OrderLegType
fn from(s: &str) -> OrderLegType
Converts to this type from the input type.
Source§impl From<OrderLegType> for String
impl From<OrderLegType> for String
Source§fn from(v: OrderLegType) -> Self
fn from(v: OrderLegType) -> Self
Converts to this type from the input type.
Source§impl From<String> for OrderLegType
impl From<String> for OrderLegType
Source§impl FromStr for OrderLegType
impl FromStr for OrderLegType
Source§impl Hash for OrderLegType
impl Hash for OrderLegType
Source§impl PartialEq for OrderLegType
impl PartialEq for OrderLegType
Source§fn eq(&self, other: &OrderLegType) -> bool
fn eq(&self, other: &OrderLegType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for OrderLegType
impl Serialize for OrderLegType
impl Eq for OrderLegType
impl StructuralPartialEq for OrderLegType
Auto Trait Implementations§
impl Freeze for OrderLegType
impl RefUnwindSafe for OrderLegType
impl Send for OrderLegType
impl Sync for OrderLegType
impl Unpin for OrderLegType
impl UnsafeUnpin for OrderLegType
impl UnwindSafe for OrderLegType
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.