pub struct TradeStatistics {Show 16 fields
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 open_price: Option<f64>,
pub high_price: Option<f64>,
pub low_price: Option<f64>,
pub ssboe: Option<i32>,
pub usecs: Option<i32>,
pub source_ssboe: Option<i32>,
pub source_usecs: Option<i32>,
pub source_nsecs: Option<i32>,
pub jop_ssboe: Option<i32>,
pub jop_nsecs: 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
open_price: Option<f64>PB_OFFSET + MNM_OPEN_PRICE
high_price: Option<f64>PB_OFFSET + MNM_HIGH_PRICE
low_price: Option<f64>PB_OFFSET + MNM_LOW_PRICE
ssboe: Option<i32>PB_OFFSET + MNM_SECONDS_SINCE_BOE
usecs: Option<i32>PB_OFFSET + MNM_USECS
source_ssboe: Option<i32>PB_OFFSET + MNM_SOURCE_SSBOE
source_usecs: Option<i32>PB_OFFSET + MNM_SOURCE_USECS
source_nsecs: Option<i32>PB_OFFSET + MNM_SOURCE_NSECS
jop_ssboe: Option<i32>PB_OFFSET + MNM_JOP_SSBOE
jop_nsecs: Option<i32>PB_OFFSET + MNM_JOP_NSECS
Implementations§
Source§impl TradeStatistics
impl TradeStatistics
Sourcepub fn high_price(&self) -> f64
pub fn high_price(&self) -> f64
Returns the value of high_price, or the default value if high_price is unset.
Sourcepub fn low_price(&self) -> f64
pub fn low_price(&self) -> f64
Returns the value of low_price, or the default value if low_price is unset.
Sourcepub fn open_price(&self) -> f64
pub fn open_price(&self) -> f64
Returns the value of open_price, or the default value if open_price is unset.
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 source_ssboe(&self) -> i32
pub fn source_ssboe(&self) -> i32
Returns the value of source_ssboe, or the default value if source_ssboe is unset.
Sourcepub fn source_usecs(&self) -> i32
pub fn source_usecs(&self) -> i32
Returns the value of source_usecs, or the default value if source_usecs is unset.
Sourcepub fn source_nsecs(&self) -> i32
pub fn source_nsecs(&self) -> i32
Returns the value of source_nsecs, or the default value if source_nsecs is unset.
Sourcepub fn jop_ssboe(&self) -> i32
pub fn jop_ssboe(&self) -> i32
Returns the value of jop_ssboe, or the default value if jop_ssboe is unset.
Sourcepub fn jop_nsecs(&self) -> i32
pub fn jop_nsecs(&self) -> i32
Returns the value of jop_nsecs, or the default value if jop_nsecs 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 TradeStatistics
impl Clone for TradeStatistics
Source§fn clone(&self) -> TradeStatistics
fn clone(&self) -> TradeStatistics
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TradeStatistics
impl Debug for TradeStatistics
Source§impl Default for TradeStatistics
impl Default for TradeStatistics
Source§impl Message for TradeStatistics
impl Message for TradeStatistics
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.