pub struct BuySellInfo {
pub trade_date: Option<u32>,
pub buy_quantity: Option<String>,
pub buy_cost: Option<String>,
pub sell_quantity: Option<String>,
pub sell_income: Option<String>,
}Expand description
买卖信息
Fields§
§trade_date: Option<u32>所属交易日
buy_quantity: Option<String>买入数量
buy_cost: Option<String>买入支出
sell_quantity: Option<String>卖出数量
sell_income: Option<String>卖出收入
Implementations§
Source§impl BuySellInfo
impl BuySellInfo
Sourcepub fn trade_date(&self) -> u32
pub fn trade_date(&self) -> u32
Returns the value of trade_date, or the default value if trade_date is unset.
Sourcepub fn buy_quantity(&self) -> &str
pub fn buy_quantity(&self) -> &str
Returns the value of buy_quantity, or the default value if buy_quantity is unset.
Sourcepub fn buy_cost(&self) -> &str
pub fn buy_cost(&self) -> &str
Returns the value of buy_cost, or the default value if buy_cost is unset.
Sourcepub fn sell_quantity(&self) -> &str
pub fn sell_quantity(&self) -> &str
Returns the value of sell_quantity, or the default value if sell_quantity is unset.
Sourcepub fn sell_income(&self) -> &str
pub fn sell_income(&self) -> &str
Returns the value of sell_income, or the default value if sell_income is unset.
Trait Implementations§
Source§impl Clone for BuySellInfo
impl Clone for BuySellInfo
Source§fn clone(&self) -> BuySellInfo
fn clone(&self) -> BuySellInfo
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 BuySellInfo
impl Debug for BuySellInfo
Source§impl Default for BuySellInfo
impl Default for BuySellInfo
Source§impl Hash for BuySellInfo
impl Hash for BuySellInfo
Source§impl Message for BuySellInfo
impl Message for BuySellInfo
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 BuySellInfo
impl PartialEq for BuySellInfo
impl Eq for BuySellInfo
impl StructuralPartialEq for BuySellInfo
Auto Trait Implementations§
impl Freeze for BuySellInfo
impl RefUnwindSafe for BuySellInfo
impl Send for BuySellInfo
impl Sync for BuySellInfo
impl Unpin for BuySellInfo
impl UnsafeUnpin for BuySellInfo
impl UnwindSafe for BuySellInfo
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.