pub struct RequestMarketDataUpdateByUnderlying {
pub template_id: i32,
pub user_msg: Vec<String>,
pub underlying_symbol: Option<String>,
pub exchange: Option<String>,
pub expiration_date: Option<String>,
pub request: Option<i32>,
pub update_bits: Option<u32>,
}Expand description
update bits and Request enum field defined here is an exact copy of request_market_data_update.proto Make sure they are always the same in both proto files.
Fields§
§template_id: i32PB_OFFSET + MNM_TEMPLATE_ID
user_msg: Vec<String>PB_OFFSET + MNM_USER_MSG
underlying_symbol: Option<String>PB_OFFSET + MNM_UNDERLYING_SYMBOL
exchange: Option<String>PB_OFFSET + MNM_EXCHANGE
expiration_date: Option<String>PB_OFFSET + MNM_EXPIRATION_DATE
request: Option<i32>PB_OFFSET + MNM_REQUEST
update_bits: Option<u32>PB_OFFSET + MNM_MESSAGE_ID
Implementations§
Source§impl RequestMarketDataUpdateByUnderlying
impl RequestMarketDataUpdateByUnderlying
Sourcepub fn request(&self) -> Request
pub fn request(&self) -> Request
Returns the enum value of request, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_request(&mut self, value: Request)
pub fn set_request(&mut self, value: Request)
Sets request to the provided enum value.
Sourcepub fn expiration_date(&self) -> &str
pub fn expiration_date(&self) -> &str
Returns the value of expiration_date, or the default value if expiration_date is unset.
Sourcepub fn underlying_symbol(&self) -> &str
pub fn underlying_symbol(&self) -> &str
Returns the value of underlying_symbol, or the default value if underlying_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 update_bits(&self) -> u32
pub fn update_bits(&self) -> u32
Returns the value of update_bits, or the default value if update_bits is unset.
Trait Implementations§
Source§impl Clone for RequestMarketDataUpdateByUnderlying
impl Clone for RequestMarketDataUpdateByUnderlying
Source§fn clone(&self) -> RequestMarketDataUpdateByUnderlying
fn clone(&self) -> RequestMarketDataUpdateByUnderlying
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Message for RequestMarketDataUpdateByUnderlying
impl Message for RequestMarketDataUpdateByUnderlying
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.Source§impl PartialEq for RequestMarketDataUpdateByUnderlying
impl PartialEq for RequestMarketDataUpdateByUnderlying
Source§fn eq(&self, other: &RequestMarketDataUpdateByUnderlying) -> bool
fn eq(&self, other: &RequestMarketDataUpdateByUnderlying) -> bool
self and other values to be equal, and is used by ==.