#[non_exhaustive]pub enum ComplexOrderStrategyType {
Show 22 variants
None,
Covered,
Vertical,
BackRatio,
Calendar,
Diagonal,
Straddle,
Strangle,
CollarSynthetic,
Butterfly,
Condor,
IronCondor,
VerticalRoll,
CollarWithStock,
DoubleDiagonal,
UnbalancedButterfly,
UnbalancedCondor,
UnbalancedIronCondor,
UnbalancedVerticalRoll,
MutualFundSwap,
Custom,
Unknown(String),
}Expand description
Multi-leg option strategy shape.
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.
None
Not a complex strategy.
Covered
Covered call / covered put.
Vertical
Vertical spread.
BackRatio
Back-ratio spread.
Calendar
Calendar (horizontal) spread.
Diagonal
Diagonal spread.
Straddle
Straddle.
Strangle
Strangle.
CollarSynthetic
Synthetic collar.
Butterfly
Butterfly.
Condor
Condor.
IronCondor
Iron condor.
VerticalRoll
Vertical roll.
CollarWithStock
Collar paired with the underlying stock.
DoubleDiagonal
Double diagonal.
UnbalancedButterfly
Unbalanced butterfly.
UnbalancedCondor
Unbalanced condor.
UnbalancedIronCondor
Unbalanced iron condor.
UnbalancedVerticalRoll
Unbalanced vertical roll.
MutualFundSwap
Mutual-fund swap.
Custom
Custom strategy that does not match a named pattern.
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 ComplexOrderStrategyType
impl Clone for ComplexOrderStrategyType
Source§fn clone(&self) -> ComplexOrderStrategyType
fn clone(&self) -> ComplexOrderStrategyType
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 ComplexOrderStrategyType
impl Debug for ComplexOrderStrategyType
Source§impl<'de> Deserialize<'de> for ComplexOrderStrategyType
impl<'de> Deserialize<'de> for ComplexOrderStrategyType
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 ComplexOrderStrategyType
impl Display for ComplexOrderStrategyType
Source§impl From<&str> for ComplexOrderStrategyType
impl From<&str> for ComplexOrderStrategyType
Source§fn from(s: &str) -> ComplexOrderStrategyType
fn from(s: &str) -> ComplexOrderStrategyType
Converts to this type from the input type.
Source§impl From<ComplexOrderStrategyType> for String
impl From<ComplexOrderStrategyType> for String
Source§fn from(v: ComplexOrderStrategyType) -> Self
fn from(v: ComplexOrderStrategyType) -> Self
Converts to this type from the input type.
Source§impl From<String> for ComplexOrderStrategyType
impl From<String> for ComplexOrderStrategyType
Source§impl FromStr for ComplexOrderStrategyType
impl FromStr for ComplexOrderStrategyType
Source§impl Hash for ComplexOrderStrategyType
impl Hash for ComplexOrderStrategyType
Source§impl PartialEq for ComplexOrderStrategyType
impl PartialEq for ComplexOrderStrategyType
Source§fn eq(&self, other: &ComplexOrderStrategyType) -> bool
fn eq(&self, other: &ComplexOrderStrategyType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ComplexOrderStrategyType
impl Serialize for ComplexOrderStrategyType
impl Eq for ComplexOrderStrategyType
impl StructuralPartialEq for ComplexOrderStrategyType
Auto Trait Implementations§
impl Freeze for ComplexOrderStrategyType
impl RefUnwindSafe for ComplexOrderStrategyType
impl Send for ComplexOrderStrategyType
impl Sync for ComplexOrderStrategyType
impl Unpin for ComplexOrderStrategyType
impl UnsafeUnpin for ComplexOrderStrategyType
impl UnwindSafe for ComplexOrderStrategyType
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.