pub struct VolPoint {
pub strike: f64,
pub expiry: f64,
pub implied_vol: f64,
}Expand description
A single point on the volatility surface.
Fields§
§strike: f64Strike price.
expiry: f64Time to expiry in years.
implied_vol: f64Implied volatility at this (strike, expiry).
Trait Implementations§
impl Copy for VolPoint
Source§impl<'de> Deserialize<'de> for VolPoint
impl<'de> Deserialize<'de> for VolPoint
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
Auto Trait Implementations§
impl Freeze for VolPoint
impl RefUnwindSafe for VolPoint
impl Send for VolPoint
impl Sync for VolPoint
impl Unpin for VolPoint
impl UnsafeUnpin for VolPoint
impl UnwindSafe for VolPoint
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