#[non_exhaustive]pub enum OrderStrategyType {
Single,
Cancel,
Recall,
Pair,
Flatten,
TwoDaySwap,
BlastAll,
Oco,
Trigger,
Unknown(String),
}Expand description
Top-level structure of an order envelope.
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.
Single
Single-leg order.
Cancel
Cancel an existing order.
Recall
Recall an existing order.
Pair
Pair-trade strategy.
Flatten
Flatten an account or position.
TwoDaySwap
Two-day swap strategy.
BlastAll
Blast-all (send to multiple venues).
Oco
One-cancels-other.
Trigger
One-triggers-other.
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 OrderStrategyType
impl Clone for OrderStrategyType
Source§fn clone(&self) -> OrderStrategyType
fn clone(&self) -> OrderStrategyType
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 OrderStrategyType
impl Debug for OrderStrategyType
Source§impl<'de> Deserialize<'de> for OrderStrategyType
impl<'de> Deserialize<'de> for OrderStrategyType
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 OrderStrategyType
impl Display for OrderStrategyType
Source§impl From<&str> for OrderStrategyType
impl From<&str> for OrderStrategyType
Source§fn from(s: &str) -> OrderStrategyType
fn from(s: &str) -> OrderStrategyType
Converts to this type from the input type.
Source§impl From<OrderStrategyType> for String
impl From<OrderStrategyType> for String
Source§fn from(v: OrderStrategyType) -> Self
fn from(v: OrderStrategyType) -> Self
Converts to this type from the input type.
Source§impl From<String> for OrderStrategyType
impl From<String> for OrderStrategyType
Source§impl FromStr for OrderStrategyType
impl FromStr for OrderStrategyType
Source§impl Hash for OrderStrategyType
impl Hash for OrderStrategyType
Source§impl PartialEq for OrderStrategyType
impl PartialEq for OrderStrategyType
Source§fn eq(&self, other: &OrderStrategyType) -> bool
fn eq(&self, other: &OrderStrategyType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for OrderStrategyType
impl Serialize for OrderStrategyType
impl Eq for OrderStrategyType
impl StructuralPartialEq for OrderStrategyType
Auto Trait Implementations§
impl Freeze for OrderStrategyType
impl RefUnwindSafe for OrderStrategyType
impl Send for OrderStrategyType
impl Sync for OrderStrategyType
impl Unpin for OrderStrategyType
impl UnsafeUnpin for OrderStrategyType
impl UnwindSafe for OrderStrategyType
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.