pub struct RequestTimeBarUpdate {
pub template_id: i32,
pub user_msg: Vec<String>,
pub symbol: Option<String>,
pub exchange: Option<String>,
pub request: Option<i32>,
pub bar_type: Option<i32>,
pub bar_type_period: Option<i32>,
}Expand description
PB_OFFSET = 100000, is the offset added for each MNM field id
Fields§
§template_id: i32PB_OFFSET + MNM_TEMPLATE_ID
user_msg: Vec<String>PB_OFFSET + MNM_USER_MSG
symbol: Option<String>PB_OFFSET + MNM_SYMBOL
exchange: Option<String>PB_OFFSET + MNM_EXCHANGE
request: Option<i32>PB_OFFSET + MNM_REQUEST
bar_type: Option<i32>PB_OFFSET + MNM_DATA_BAR_TYPE
bar_type_period: Option<i32>PB_OFFSET + MNM_TIME_BAR_PERIOD
Implementations§
Source§impl RequestTimeBarUpdate
impl RequestTimeBarUpdate
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 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 bar_type_period(&self) -> i32
pub fn bar_type_period(&self) -> i32
Returns the value of bar_type_period, or the default value if bar_type_period is unset.
Sourcepub fn bar_type(&self) -> BarType
pub fn bar_type(&self) -> BarType
Returns the enum value of bar_type, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_bar_type(&mut self, value: BarType)
pub fn set_bar_type(&mut self, value: BarType)
Sets bar_type to the provided enum value.
Trait Implementations§
Source§impl Clone for RequestTimeBarUpdate
impl Clone for RequestTimeBarUpdate
Source§fn clone(&self) -> RequestTimeBarUpdate
fn clone(&self) -> RequestTimeBarUpdate
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RequestTimeBarUpdate
impl Debug for RequestTimeBarUpdate
Source§impl Default for RequestTimeBarUpdate
impl Default for RequestTimeBarUpdate
Source§impl Hash for RequestTimeBarUpdate
impl Hash for RequestTimeBarUpdate
Source§impl Message for RequestTimeBarUpdate
impl Message for RequestTimeBarUpdate
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.