pub struct QuoteStatistics {
pub template_id: i32,
pub symbol: Option<String>,
pub exchange: Option<String>,
pub presence_bits: Option<u32>,
pub clear_bits: Option<u32>,
pub is_snapshot: Option<bool>,
pub highest_bid_price: Option<f64>,
pub lowest_ask_price: Option<f64>,
pub ssboe: Option<i32>,
pub usecs: Option<i32>,
}Expand description
PB_OFFSET = 100000, is the offset added for each MNM field id
Fields§
§template_id: i32PB_OFFSET + MNM_TEMPLATE_ID
symbol: Option<String>PB_OFFSET + MNM_SYMBOL
exchange: Option<String>PB_OFFSET + MNM_EXCHANGE
presence_bits: Option<u32>PB_OFFSET + MNM_PRICING_INDICATOR
clear_bits: Option<u32>PB_OFFSET + MNM_DISPLAY_INDICATOR
is_snapshot: Option<bool>PB_OFFSET + MNM_UPDATE_TYPE
highest_bid_price: Option<f64>PB_OFFSET + MNM_HIGHEST_BID_PRICE
lowest_ask_price: Option<f64>PB_OFFSET + MNM_LOWEST_ASK_PRICE
ssboe: Option<i32>PB_OFFSET + MNM_SECONDS_SINCE_BOE
usecs: Option<i32>PB_OFFSET + MNM_USECS
Implementations§
Source§impl QuoteStatistics
impl QuoteStatistics
Sourcepub fn symbol(&self) -> &str
pub fn symbol(&self) -> &str
Returns the value of symbol, or the default value if symbol is unset.
Sourcepub fn exchange(&self) -> &str
pub fn exchange(&self) -> &str
Returns the value of exchange, or the default value if exchange is unset.
Sourcepub fn is_snapshot(&self) -> bool
pub fn is_snapshot(&self) -> bool
Returns the value of is_snapshot, or the default value if is_snapshot is unset.
Sourcepub fn presence_bits(&self) -> u32
pub fn presence_bits(&self) -> u32
Returns the value of presence_bits, or the default value if presence_bits is unset.
Sourcepub fn highest_bid_price(&self) -> f64
pub fn highest_bid_price(&self) -> f64
Returns the value of highest_bid_price, or the default value if highest_bid_price is unset.
Sourcepub fn lowest_ask_price(&self) -> f64
pub fn lowest_ask_price(&self) -> f64
Returns the value of lowest_ask_price, or the default value if lowest_ask_price is unset.
Sourcepub fn clear_bits(&self) -> u32
pub fn clear_bits(&self) -> u32
Returns the value of clear_bits, or the default value if clear_bits is unset.
Trait Implementations§
Source§impl Clone for QuoteStatistics
impl Clone for QuoteStatistics
Source§fn clone(&self) -> QuoteStatistics
fn clone(&self) -> QuoteStatistics
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for QuoteStatistics
impl Debug for QuoteStatistics
Source§impl Default for QuoteStatistics
impl Default for QuoteStatistics
Source§impl Message for QuoteStatistics
impl Message for QuoteStatistics
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
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,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
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,
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,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
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,
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,
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,
self.