pub struct StrategyLeg {
pub symbol_id: u64,
pub action: String,
pub ratio: u32,
}Expand description
A single leg in a multi-leg option strategy variant.
Fields§
§symbol_id: u64Option symbol ID for this leg.
action: StringOrder side: "Buy" or "Sell".
ratio: u32Ratio of this leg in the strategy (e.g. 1 for a standard spread).
Trait Implementations§
Source§impl Clone for StrategyLeg
impl Clone for StrategyLeg
Source§fn clone(&self) -> StrategyLeg
fn clone(&self) -> StrategyLeg
Returns a duplicate of the value. Read more
1.0.0 · 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 StrategyLeg
impl Debug for StrategyLeg
Auto Trait Implementations§
impl Freeze for StrategyLeg
impl RefUnwindSafe for StrategyLeg
impl Send for StrategyLeg
impl Sync for StrategyLeg
impl Unpin for StrategyLeg
impl UnsafeUnpin for StrategyLeg
impl UnwindSafe for StrategyLeg
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