pub struct OpenInterest {
pub template_id: i32,
pub symbol: Option<String>,
pub exchange: Option<String>,
pub is_snapshot: Option<bool>,
pub should_clear: Option<bool>,
pub open_interest: Option<u64>,
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
is_snapshot: Option<bool>PB_OFFSET + MNM_UPDATE_TYPE
should_clear: Option<bool>PB_OFFSET + MNM_DISPLAY_INDICATOR
open_interest: Option<u64>PB_OFFSET + MNM_OPEN_INTEREST
ssboe: Option<i32>PB_OFFSET + MNM_SECONDS_SINCE_BOE
usecs: Option<i32>PB_OFFSET + MNM_USECS
Implementations§
Source§impl OpenInterest
impl OpenInterest
Sourcepub fn open_interest(&self) -> u64
pub fn open_interest(&self) -> u64
Returns the value of open_interest, or the default value if open_interest 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 should_clear(&self) -> bool
pub fn should_clear(&self) -> bool
Returns the value of should_clear, or the default value if should_clear is unset.
Trait Implementations§
Source§impl Clone for OpenInterest
impl Clone for OpenInterest
Source§fn clone(&self) -> OpenInterest
fn clone(&self) -> OpenInterest
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 OpenInterest
impl Debug for OpenInterest
Source§impl Default for OpenInterest
impl Default for OpenInterest
Source§impl Hash for OpenInterest
impl Hash for OpenInterest
Source§impl Message for OpenInterest
impl Message for OpenInterest
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 OpenInterest
impl PartialEq for OpenInterest
impl Eq for OpenInterest
impl StructuralPartialEq for OpenInterest
Auto Trait Implementations§
impl Freeze for OpenInterest
impl RefUnwindSafe for OpenInterest
impl Send for OpenInterest
impl Sync for OpenInterest
impl Unpin for OpenInterest
impl UnsafeUnpin for OpenInterest
impl UnwindSafe for OpenInterest
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