pub struct KlinePoint {
pub kline_type: Option<u32>,
pub exright_type: Option<u32>,
pub item: Option<KlineItem>,
pub kline_time_ms: Option<u64>,
pub exright_type_new: Option<u32>,
pub section_type: Vec<u32>,
}Expand description
K线点
Fields§
§kline_type: Option<u32>K线类型,见KlineType枚举(FTCmdKline.proto)
exright_type: Option<u32>复权类型,见ExrightType枚举
item: Option<KlineItem>K线数据点
kline_time_ms: Option<u64>v1.4.110 final E.5 P1#4: 补 field 4-5 对齐 C++ Quote/FTCmdStockQuoteAccumulateData.proto:28-29 kline_time_ms: ms 级时间戳 (Rust 当前用秒级 item.time, 此为更精确版本). exright_type_new: 复权类型 v2, 上面 field 2 exright_type 为 deprecated. TODO(v1.5+): 客户端切到 exright_type_new 后 deprecate field 2.
触发K线/分时生成的行情时间戳(毫秒)
exright_type_new: Option<u32>复权类型,见ExrightType枚举
section_type: Vec<u32>时段类型,复用枚举FTCmdKline.RequestSection
Implementations§
Source§impl KlinePoint
impl KlinePoint
Sourcepub fn kline_type(&self) -> u32
pub fn kline_type(&self) -> u32
Returns the value of kline_type, or the default value if kline_type is unset.
Sourcepub fn exright_type(&self) -> u32
pub fn exright_type(&self) -> u32
Returns the value of exright_type, or the default value if exright_type 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 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 KlinePoint
impl Clone for KlinePoint
Source§fn clone(&self) -> KlinePoint
fn clone(&self) -> KlinePoint
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 KlinePoint
impl Debug for KlinePoint
Source§impl Default for KlinePoint
impl Default for KlinePoint
Source§impl Hash for KlinePoint
impl Hash for KlinePoint
Source§impl Message for KlinePoint
impl Message for KlinePoint
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 KlinePoint
impl PartialEq for KlinePoint
impl Eq for KlinePoint
impl StructuralPartialEq for KlinePoint
Auto Trait Implementations§
impl Freeze for KlinePoint
impl RefUnwindSafe for KlinePoint
impl Send for KlinePoint
impl Sync for KlinePoint
impl Unpin for KlinePoint
impl UnsafeUnpin for KlinePoint
impl UnwindSafe for KlinePoint
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.