pub struct StrategyLegInput {
pub contract: OptionContract,
pub order_side: OrderSide,
pub ratio_quantity: u32,
pub premium_per_contract: Option<f64>,
}Fields§
§contract: OptionContract§order_side: OrderSide§ratio_quantity: u32Trait Implementations§
Source§impl Clone for StrategyLegInput
impl Clone for StrategyLegInput
Source§fn clone(&self) -> StrategyLegInput
fn clone(&self) -> StrategyLegInput
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 StrategyLegInput
impl Debug for StrategyLegInput
Source§impl<'de> Deserialize<'de> for StrategyLegInput
impl<'de> Deserialize<'de> for StrategyLegInput
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 PartialEq for StrategyLegInput
impl PartialEq for StrategyLegInput
Source§impl Serialize for StrategyLegInput
impl Serialize for StrategyLegInput
impl StructuralPartialEq for StrategyLegInput
Auto Trait Implementations§
impl Freeze for StrategyLegInput
impl RefUnwindSafe for StrategyLegInput
impl Send for StrategyLegInput
impl Sync for StrategyLegInput
impl Unpin for StrategyLegInput
impl UnsafeUnpin for StrategyLegInput
impl UnwindSafe for StrategyLegInput
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