pub struct TickOptionComputation {
pub req_id: Option<i32>,
pub tick_type: Option<i32>,
pub tick_attrib: Option<i32>,
pub implied_vol: Option<f64>,
pub delta: Option<f64>,
pub opt_price: Option<f64>,
pub pv_dividend: Option<f64>,
pub gamma: Option<f64>,
pub vega: Option<f64>,
pub theta: Option<f64>,
pub und_price: Option<f64>,
}Fields§
§req_id: Option<i32>§tick_type: Option<i32>§tick_attrib: Option<i32>§implied_vol: Option<f64>§delta: Option<f64>§opt_price: Option<f64>§pv_dividend: Option<f64>§gamma: Option<f64>§vega: Option<f64>§theta: Option<f64>§und_price: Option<f64>Implementations§
Source§impl TickOptionComputation
impl TickOptionComputation
Sourcepub fn req_id(&self) -> i32
pub fn req_id(&self) -> i32
Returns the value of req_id, or the default value if req_id is unset.
Sourcepub fn tick_type(&self) -> i32
pub fn tick_type(&self) -> i32
Returns the value of tick_type, or the default value if tick_type is unset.
Sourcepub fn tick_attrib(&self) -> i32
pub fn tick_attrib(&self) -> i32
Returns the value of tick_attrib, or the default value if tick_attrib is unset.
Sourcepub fn implied_vol(&self) -> f64
pub fn implied_vol(&self) -> f64
Returns the value of implied_vol, or the default value if implied_vol is unset.
Sourcepub fn opt_price(&self) -> f64
pub fn opt_price(&self) -> f64
Returns the value of opt_price, or the default value if opt_price is unset.
Sourcepub fn pv_dividend(&self) -> f64
pub fn pv_dividend(&self) -> f64
Returns the value of pv_dividend, or the default value if pv_dividend is unset.
Trait Implementations§
Source§impl Clone for TickOptionComputation
impl Clone for TickOptionComputation
Source§fn clone(&self) -> TickOptionComputation
fn clone(&self) -> TickOptionComputation
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 moreimpl Copy for TickOptionComputation
Source§impl Debug for TickOptionComputation
impl Debug for TickOptionComputation
Source§impl Default for TickOptionComputation
impl Default for TickOptionComputation
Source§impl Message for TickOptionComputation
impl Message for TickOptionComputation
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for TickOptionComputation
impl PartialEq for TickOptionComputation
impl StructuralPartialEq for TickOptionComputation
Auto Trait Implementations§
impl Freeze for TickOptionComputation
impl RefUnwindSafe for TickOptionComputation
impl Send for TickOptionComputation
impl Sync for TickOptionComputation
impl Unpin for TickOptionComputation
impl UnsafeUnpin for TickOptionComputation
impl UnwindSafe for TickOptionComputation
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