pub struct ParsedOptionWithTicker {
pub instrument_name: String,
pub strike: f64,
pub option_type: OptionType,
pub expiry: String,
pub ticker: TickerData,
}Expand description
Parsed option instrument with ticker data
Fields§
§instrument_name: StringThe instrument name (e.g., “BTC-25DEC21-50000-C”)
strike: f64Strike price of the option
option_type: OptionTypeType of option (Call or Put)
expiry: StringExpiry date string
ticker: TickerDataAssociated ticker data
Trait Implementations§
Source§impl Clone for ParsedOptionWithTicker
impl Clone for ParsedOptionWithTicker
Source§fn clone(&self) -> ParsedOptionWithTicker
fn clone(&self) -> ParsedOptionWithTicker
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 ParsedOptionWithTicker
impl Debug for ParsedOptionWithTicker
Source§impl Display for ParsedOptionWithTicker
impl Display for ParsedOptionWithTicker
Auto Trait Implementations§
impl Freeze for ParsedOptionWithTicker
impl RefUnwindSafe for ParsedOptionWithTicker
impl Send for ParsedOptionWithTicker
impl Sync for ParsedOptionWithTicker
impl Unpin for ParsedOptionWithTicker
impl UnwindSafe for ParsedOptionWithTicker
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.