pub struct SecCapBrokerRecord {
pub broker_id: Option<u32>,
pub net_buy_vol: Option<i64>,
pub net_sell_vol: Option<i64>,
pub avg_price: Option<i64>,
pub broker_vol: Option<i64>,
pub broker_turnover: Option<u64>,
pub update_time: Option<u64>,
}Fields§
§broker_id: Option<u32>§net_buy_vol: Option<i64>§net_sell_vol: Option<i64>§avg_price: Option<i64>§broker_vol: Option<i64>§broker_turnover: Option<u64>§update_time: Option<u64>Implementations§
Source§impl SecCapBrokerRecord
impl SecCapBrokerRecord
Sourcepub fn broker_id(&self) -> u32
pub fn broker_id(&self) -> u32
Returns the value of broker_id, or the default value if broker_id is unset.
Sourcepub fn net_buy_vol(&self) -> i64
pub fn net_buy_vol(&self) -> i64
Returns the value of net_buy_vol, or the default value if net_buy_vol is unset.
Sourcepub fn net_sell_vol(&self) -> i64
pub fn net_sell_vol(&self) -> i64
Returns the value of net_sell_vol, or the default value if net_sell_vol is unset.
Sourcepub fn avg_price(&self) -> i64
pub fn avg_price(&self) -> i64
Returns the value of avg_price, or the default value if avg_price is unset.
Sourcepub fn broker_vol(&self) -> i64
pub fn broker_vol(&self) -> i64
Returns the value of broker_vol, or the default value if broker_vol is unset.
Sourcepub fn broker_turnover(&self) -> u64
pub fn broker_turnover(&self) -> u64
Returns the value of broker_turnover, or the default value if broker_turnover is unset.
Sourcepub fn update_time(&self) -> u64
pub fn update_time(&self) -> u64
Returns the value of update_time, or the default value if update_time is unset.
Trait Implementations§
Source§impl Clone for SecCapBrokerRecord
impl Clone for SecCapBrokerRecord
Source§fn clone(&self) -> SecCapBrokerRecord
fn clone(&self) -> SecCapBrokerRecord
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 SecCapBrokerRecord
impl Debug for SecCapBrokerRecord
Source§impl Default for SecCapBrokerRecord
impl Default for SecCapBrokerRecord
Source§impl Hash for SecCapBrokerRecord
impl Hash for SecCapBrokerRecord
Source§impl Message for SecCapBrokerRecord
impl Message for SecCapBrokerRecord
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 SecCapBrokerRecord
impl PartialEq for SecCapBrokerRecord
impl Copy for SecCapBrokerRecord
impl Eq for SecCapBrokerRecord
impl StructuralPartialEq for SecCapBrokerRecord
Auto Trait Implementations§
impl Freeze for SecCapBrokerRecord
impl RefUnwindSafe for SecCapBrokerRecord
impl Send for SecCapBrokerRecord
impl Sync for SecCapBrokerRecord
impl Unpin for SecCapBrokerRecord
impl UnsafeUnpin for SecCapBrokerRecord
impl UnwindSafe for SecCapBrokerRecord
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.