pub struct Kline {
pub point_list: Vec<KlinePoint>,
pub svr_send_to_client_ms: Option<u64>,
pub volume_precision: Option<u32>,
}Expand description
K线, 订阅位: SBIT_KLINE_*
Fields§
§point_list: Vec<KlinePoint>K线点
svr_send_to_client_ms: Option<u64>v1.4.110 final E.5 P1#3: 补 field 2-3 对齐 C++ Quote/FTCmdStockQuoteAccumulateData.proto:37-38 svr_send_to_client_ms: server(hp_mdf) 推送时间戳 (诊断时延用, 与 KlinePoint.kline_time_ms 区分). volume_precision: crypto 成交量精度, KlineItem.volume / 10^precision = 真实手数.
server(hp_mdf) 推送的时间戳
volume_precision: Option<u32>成交量精度n, 对 KlineItem 中 volume 放大了 10^n 次方
Implementations§
Source§impl Kline
impl Kline
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 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.
Trait Implementations§
Source§impl Message for Kline
impl Message for Kline
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.impl StructuralPartialEq for Kline
Auto Trait Implementations§
impl Freeze for Kline
impl RefUnwindSafe for Kline
impl Send for Kline
impl Sync for Kline
impl Unpin for Kline
impl UnsafeUnpin for Kline
impl UnwindSafe for Kline
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