pub struct OptionPricingResult {
pub price: f64,
pub intrinsic_value: f64,
pub time_value: f64,
pub greeks: OptionGreeks,
}Expand description
Complete evaluated outcome of an option pricing computation.
Fields§
§price: f64Theoretical option price.
intrinsic_value: f64Immediate intrinsic exercise value ($\max(S - K, 0)$ for Call, $\max(K - S, 0)$ for Put).
time_value: f64Remaining time value (price - intrinsic_value).
greeks: OptionGreeksEvaluated sensitivities (Greeks).
Trait Implementations§
Source§impl Clone for OptionPricingResult
impl Clone for OptionPricingResult
Source§fn clone(&self) -> OptionPricingResult
fn clone(&self) -> OptionPricingResult
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 OptionPricingResult
impl Debug for OptionPricingResult
Source§impl<'de> Deserialize<'de> for OptionPricingResult
impl<'de> Deserialize<'de> for OptionPricingResult
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 OptionPricingResult
impl PartialEq for OptionPricingResult
Source§impl Serialize for OptionPricingResult
impl Serialize for OptionPricingResult
impl StructuralPartialEq for OptionPricingResult
Auto Trait Implementations§
impl Freeze for OptionPricingResult
impl RefUnwindSafe for OptionPricingResult
impl Send for OptionPricingResult
impl Sync for OptionPricingResult
impl Unpin for OptionPricingResult
impl UnsafeUnpin for OptionPricingResult
impl UnwindSafe for OptionPricingResult
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