pub struct FlowTrendPoint {
pub time: Option<u64>,
pub total_net_in: Option<i64>,
pub super_net_in: Option<i64>,
pub big_net_in: Option<i64>,
pub mid_net_in: Option<i64>,
pub sml_net_in: Option<i64>,
pub main_net_in: Option<i64>,
pub main_deal_ratio: Option<u64>,
pub acc_main_net_in: Option<i64>,
pub price_change_ratio: Option<i64>,
pub close_price: Option<i64>,
pub is_empty: Option<i32>,
}Expand description
流向趋势点数据点, 用于实时资金流向和历史资金流向
Fields§
§time: Option<u64>时间
total_net_in: Option<i64>整体净流入, 保留3位小数(单位为0.001)
super_net_in: Option<i64>特大单净流入, 保留3位小数(单位为0.001)
big_net_in: Option<i64>大单净流入, 保留3位小数(单位为0.001)
mid_net_in: Option<i64>中单净流入, 保留3位小数(单位为0.001)
sml_net_in: Option<i64>小单净流入, 保留3位小数(单位为0.001)
main_net_in: Option<i64>以下六个字段仅在历史资金流向接口中使用
主力大单净流入: 特大单+大单, 保留3位小数(单位为0.001)
main_deal_ratio: Option<u64>主力成交占比, 单位为 0.01%
acc_main_net_in: Option<i64>累计主力大单净流入, 保留3位小数(单位为0.001)
price_change_ratio: Option<i64>股价涨跌幅, 单位为 0.01%
close_price: Option<i64>对应时间点的收盘价,保留9位小数
is_empty: Option<i32>是否空点。0:表示非空点;非0:表示空点(客户端用于决定是否绘制该点)
Implementations§
Source§impl FlowTrendPoint
impl FlowTrendPoint
Sourcepub fn total_net_in(&self) -> i64
pub fn total_net_in(&self) -> i64
Returns the value of total_net_in, or the default value if total_net_in is unset.
Sourcepub fn super_net_in(&self) -> i64
pub fn super_net_in(&self) -> i64
Returns the value of super_net_in, or the default value if super_net_in is unset.
Sourcepub fn big_net_in(&self) -> i64
pub fn big_net_in(&self) -> i64
Returns the value of big_net_in, or the default value if big_net_in is unset.
Sourcepub fn mid_net_in(&self) -> i64
pub fn mid_net_in(&self) -> i64
Returns the value of mid_net_in, or the default value if mid_net_in is unset.
Sourcepub fn sml_net_in(&self) -> i64
pub fn sml_net_in(&self) -> i64
Returns the value of sml_net_in, or the default value if sml_net_in is unset.
Sourcepub fn main_net_in(&self) -> i64
pub fn main_net_in(&self) -> i64
Returns the value of main_net_in, or the default value if main_net_in is unset.
Sourcepub fn price_change_ratio(&self) -> i64
pub fn price_change_ratio(&self) -> i64
Returns the value of price_change_ratio, or the default value if price_change_ratio is unset.
Sourcepub fn close_price(&self) -> i64
pub fn close_price(&self) -> i64
Returns the value of close_price, or the default value if close_price is unset.
Sourcepub fn is_empty(&self) -> i32
pub fn is_empty(&self) -> i32
Returns the value of is_empty, or the default value if is_empty is unset.
Sourcepub fn main_deal_ratio(&self) -> u64
pub fn main_deal_ratio(&self) -> u64
Returns the value of main_deal_ratio, or the default value if main_deal_ratio is unset.
Sourcepub fn acc_main_net_in(&self) -> i64
pub fn acc_main_net_in(&self) -> i64
Returns the value of acc_main_net_in, or the default value if acc_main_net_in is unset.
Trait Implementations§
Source§impl Clone for FlowTrendPoint
impl Clone for FlowTrendPoint
Source§fn clone(&self) -> FlowTrendPoint
fn clone(&self) -> FlowTrendPoint
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FlowTrendPoint
impl Debug for FlowTrendPoint
Source§impl Default for FlowTrendPoint
impl Default for FlowTrendPoint
Source§impl Hash for FlowTrendPoint
impl Hash for FlowTrendPoint
Source§impl Message for FlowTrendPoint
impl Message for FlowTrendPoint
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 FlowTrendPoint
impl PartialEq for FlowTrendPoint
impl Copy for FlowTrendPoint
impl Eq for FlowTrendPoint
impl StructuralPartialEq for FlowTrendPoint
Auto Trait Implementations§
impl Freeze for FlowTrendPoint
impl RefUnwindSafe for FlowTrendPoint
impl Send for FlowTrendPoint
impl Sync for FlowTrendPoint
impl Unpin for FlowTrendPoint
impl UnsafeUnpin for FlowTrendPoint
impl UnwindSafe for FlowTrendPoint
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
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
§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
§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
key and return true if they are equal.