pub struct StrategyPnlInput {
pub positions: Vec<StrategyValuationPosition>,
pub underlying_price: f64,
pub evaluation_time: String,
pub entry_cost: Option<f64>,
pub rate: f64,
pub dividend_yield: Option<f64>,
pub long_volatility_shift: Option<f64>,
}Fields§
§positions: Vec<StrategyValuationPosition>§underlying_price: f64§evaluation_time: String§entry_cost: Option<f64>§rate: f64§dividend_yield: Option<f64>§long_volatility_shift: Option<f64>Trait Implementations§
Source§impl Clone for StrategyPnlInput
impl Clone for StrategyPnlInput
Source§fn clone(&self) -> StrategyPnlInput
fn clone(&self) -> StrategyPnlInput
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 StrategyPnlInput
impl Debug for StrategyPnlInput
Source§impl<'de> Deserialize<'de> for StrategyPnlInput
impl<'de> Deserialize<'de> for StrategyPnlInput
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 StrategyPnlInput
impl PartialEq for StrategyPnlInput
Source§impl Serialize for StrategyPnlInput
impl Serialize for StrategyPnlInput
impl StructuralPartialEq for StrategyPnlInput
Auto Trait Implementations§
impl Freeze for StrategyPnlInput
impl RefUnwindSafe for StrategyPnlInput
impl Send for StrategyPnlInput
impl Sync for StrategyPnlInput
impl Unpin for StrategyPnlInput
impl UnsafeUnpin for StrategyPnlInput
impl UnwindSafe for StrategyPnlInput
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