pub struct CapitalFlowItem {
pub in_flow: f64,
pub time: Option<String>,
pub timestamp: Option<f64>,
pub main_in_flow: Option<f64>,
pub super_in_flow: Option<f64>,
pub big_in_flow: Option<f64>,
pub mid_in_flow: Option<f64>,
pub sml_in_flow: Option<f64>,
}Fields§
§in_flow: f64整体净流入
time: Option<String>开始时间字符串,以分钟为单位
timestamp: Option<f64>开始时间戳
main_in_flow: Option<f64>主力大单净流入,仅周期类型不为实时有效
super_in_flow: Option<f64>特大单净流入
big_in_flow: Option<f64>大单净流入
mid_in_flow: Option<f64>中单净流入
sml_in_flow: Option<f64>小单净流入
Implementations§
Source§impl CapitalFlowItem
impl CapitalFlowItem
Sourcepub fn timestamp(&self) -> f64
pub fn timestamp(&self) -> f64
Returns the value of timestamp, or the default value if timestamp is unset.
Sourcepub fn main_in_flow(&self) -> f64
pub fn main_in_flow(&self) -> f64
Returns the value of main_in_flow, or the default value if main_in_flow is unset.
Sourcepub fn super_in_flow(&self) -> f64
pub fn super_in_flow(&self) -> f64
Returns the value of super_in_flow, or the default value if super_in_flow is unset.
Sourcepub fn big_in_flow(&self) -> f64
pub fn big_in_flow(&self) -> f64
Returns the value of big_in_flow, or the default value if big_in_flow is unset.
Sourcepub fn mid_in_flow(&self) -> f64
pub fn mid_in_flow(&self) -> f64
Returns the value of mid_in_flow, or the default value if mid_in_flow is unset.
Sourcepub fn sml_in_flow(&self) -> f64
pub fn sml_in_flow(&self) -> f64
Returns the value of sml_in_flow, or the default value if sml_in_flow is unset.
Trait Implementations§
Source§impl Clone for CapitalFlowItem
impl Clone for CapitalFlowItem
Source§fn clone(&self) -> CapitalFlowItem
fn clone(&self) -> CapitalFlowItem
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 CapitalFlowItem
impl Debug for CapitalFlowItem
Source§impl Default for CapitalFlowItem
impl Default for CapitalFlowItem
Source§impl<'de> Deserialize<'de> for CapitalFlowItemwhere
CapitalFlowItem: Default,
impl<'de> Deserialize<'de> for CapitalFlowItemwhere
CapitalFlowItem: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for CapitalFlowItem
impl Message for CapitalFlowItem
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 CapitalFlowItem
impl PartialEq for CapitalFlowItem
Source§impl Serialize for CapitalFlowItem
impl Serialize for CapitalFlowItem
impl StructuralPartialEq for CapitalFlowItem
Auto Trait Implementations§
impl Freeze for CapitalFlowItem
impl RefUnwindSafe for CapitalFlowItem
impl Send for CapitalFlowItem
impl Sync for CapitalFlowItem
impl Unpin for CapitalFlowItem
impl UnwindSafe for CapitalFlowItem
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