pub struct OptionSnapshot {
pub latest_quote: Option<OptionQuote>,
pub latest_trade: Option<OptionTrade>,
pub greeks: Option<OptionGreeks>,
pub implied_volatility: Option<f64>,
}Expand description
Option snapshot with latest quote, trade, and greeks.
Fields§
§latest_quote: Option<OptionQuote>Latest quote.
latest_trade: Option<OptionTrade>Latest trade.
greeks: Option<OptionGreeks>Option Greeks.
implied_volatility: Option<f64>Implied volatility.
Trait Implementations§
Source§impl Clone for OptionSnapshot
impl Clone for OptionSnapshot
Source§fn clone(&self) -> OptionSnapshot
fn clone(&self) -> OptionSnapshot
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 OptionSnapshot
impl Debug for OptionSnapshot
Source§impl<'de> Deserialize<'de> for OptionSnapshot
impl<'de> Deserialize<'de> for OptionSnapshot
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<OptionSnapshot, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<OptionSnapshot, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for OptionSnapshot
impl Serialize for OptionSnapshot
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for OptionSnapshot
impl RefUnwindSafe for OptionSnapshot
impl Send for OptionSnapshot
impl Sync for OptionSnapshot
impl Unpin for OptionSnapshot
impl UnwindSafe for OptionSnapshot
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