pub struct ChainStatisticInfo {
pub expect_move: Option<i64>,
pub ivx: Option<i64>,
pub call_volume: Option<i64>,
pub put_volume: Option<i64>,
pub volume: Option<i64>,
}Expand description
注意注意注意: 后台svr实现时,有基于reflect解析字段,假设ChainStatisticInfo在被引用的名称为chain,则其子字段在svr解析为chain_xxx,es存储也需按如此命名,es字段确定后很难修改,这里需要小心
Fields§
§expect_move: Option<i64>预期波动,精度为10**5 (eg: 1.5%,则返回1500)
ivx: Option<i64>到期日ivx,精度为10**5 (eg: 1.5%,则返回1500)
call_volume: Option<i64>call成交量
put_volume: Option<i64>put成交量
volume: Option<i64>成交量
Implementations§
Source§impl ChainStatisticInfo
impl ChainStatisticInfo
Sourcepub fn expect_move(&self) -> i64
pub fn expect_move(&self) -> i64
Returns the value of expect_move, or the default value if expect_move is unset.
Sourcepub fn call_volume(&self) -> i64
pub fn call_volume(&self) -> i64
Returns the value of call_volume, or the default value if call_volume is unset.
Sourcepub fn put_volume(&self) -> i64
pub fn put_volume(&self) -> i64
Returns the value of put_volume, or the default value if put_volume is unset.
Trait Implementations§
Source§impl Clone for ChainStatisticInfo
impl Clone for ChainStatisticInfo
Source§fn clone(&self) -> ChainStatisticInfo
fn clone(&self) -> ChainStatisticInfo
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 ChainStatisticInfo
impl Debug for ChainStatisticInfo
Source§impl Default for ChainStatisticInfo
impl Default for ChainStatisticInfo
Source§impl Hash for ChainStatisticInfo
impl Hash for ChainStatisticInfo
Source§impl Message for ChainStatisticInfo
impl Message for ChainStatisticInfo
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 ChainStatisticInfo
impl PartialEq for ChainStatisticInfo
impl Copy for ChainStatisticInfo
impl Eq for ChainStatisticInfo
impl StructuralPartialEq for ChainStatisticInfo
Auto Trait Implementations§
impl Freeze for ChainStatisticInfo
impl RefUnwindSafe for ChainStatisticInfo
impl Send for ChainStatisticInfo
impl Sync for ChainStatisticInfo
impl Unpin for ChainStatisticInfo
impl UnsafeUnpin for ChainStatisticInfo
impl UnwindSafe for ChainStatisticInfo
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.