pub struct TimeSharingPlans {
pub point: Option<TimeSharePoint>,
pub svr_send_to_client_ms: Option<u64>,
pub kline_time_ms: Option<u64>,
pub volume_precision: Option<u32>,
pub exright_type_new: Option<u32>,
pub section_type: Vec<u32>,
}Expand description
分时, 订阅位: SBIT_TIME_SHARING_PLANS 或 SBIT_PRE_AFTER_TIME_SHARING_PLANS
Fields§
§point: Option<TimeSharePoint>分时点数据
svr_send_to_client_ms: Option<u64>server(hp_mdf)推送的时间戳
kline_time_ms: Option<u64>触发K线/分时生成的行情时间戳(毫秒)
volume_precision: Option<u32>成交量精度
exright_type_new: Option<u32>详见ExrightType枚举
section_type: Vec<u32>时段类型,复用枚举FTCmdKline.RequestSection
Implementations§
Source§impl TimeSharingPlans
impl TimeSharingPlans
Sourcepub fn svr_send_to_client_ms(&self) -> u64
pub fn svr_send_to_client_ms(&self) -> u64
Returns the value of svr_send_to_client_ms, or the default value if svr_send_to_client_ms is unset.
Sourcepub fn kline_time_ms(&self) -> u64
pub fn kline_time_ms(&self) -> u64
Returns the value of kline_time_ms, or the default value if kline_time_ms is unset.
Sourcepub fn volume_precision(&self) -> u32
pub fn volume_precision(&self) -> u32
Returns the value of volume_precision, or the default value if volume_precision is unset.
Sourcepub fn exright_type_new(&self) -> u32
pub fn exright_type_new(&self) -> u32
Returns the value of exright_type_new, or the default value if exright_type_new is unset.
Trait Implementations§
Source§impl Clone for TimeSharingPlans
impl Clone for TimeSharingPlans
Source§fn clone(&self) -> TimeSharingPlans
fn clone(&self) -> TimeSharingPlans
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 TimeSharingPlans
impl Debug for TimeSharingPlans
Source§impl Default for TimeSharingPlans
impl Default for TimeSharingPlans
Source§impl Hash for TimeSharingPlans
impl Hash for TimeSharingPlans
Source§impl Message for TimeSharingPlans
impl Message for TimeSharingPlans
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 TimeSharingPlans
impl PartialEq for TimeSharingPlans
impl Eq for TimeSharingPlans
impl StructuralPartialEq for TimeSharingPlans
Auto Trait Implementations§
impl Freeze for TimeSharingPlans
impl RefUnwindSafe for TimeSharingPlans
impl Send for TimeSharingPlans
impl Sync for TimeSharingPlans
impl Unpin for TimeSharingPlans
impl UnsafeUnpin for TimeSharingPlans
impl UnwindSafe for TimeSharingPlans
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.