pub struct TradeStress {
pub label: String,
pub quantity: f64,
pub base_mtm: f64,
pub stressed_mtm: f64,
pub stress_pnl: f64,
}Expand description
One trade’s stress result.
Fields§
§label: StringHuman-readable trade tag: symbol, payoff kind, strike, quantity.
quantity: f64§base_mtm: f64§stressed_mtm: f64§stress_pnl: f64stressed - base.
Trait Implementations§
Source§impl Clone for TradeStress
impl Clone for TradeStress
Source§fn clone(&self) -> TradeStress
fn clone(&self) -> TradeStress
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 moreAuto Trait Implementations§
impl Freeze for TradeStress
impl RefUnwindSafe for TradeStress
impl Send for TradeStress
impl Sync for TradeStress
impl Unpin for TradeStress
impl UnsafeUnpin for TradeStress
impl UnwindSafe for TradeStress
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