pub struct StaticFinancialIndicator {
pub net_asset: Option<i64>,
pub net_asset_pershare: Option<i64>,
pub net_profit_lyr: Option<i64>,
pub net_profit_ttm: Option<i64>,
pub ey_ratio: Option<i32>,
}Expand description
静态财务指标,订阅位:SBIT_STATIC_FINANCIAL_INDICATOR
Fields§
§net_asset: Option<i64>净资产[放大10^3倍]
每股净资产[放大10^9倍]
net_profit_lyr: Option<i64>年度净利润(负数表示亏损)[放大10^3倍]
net_profit_ttm: Option<i64>TTM净利润(负数表示亏损)[放大10^3倍]
ey_ratio: Option<i32>收益率[放大10^3倍]
Implementations§
Source§impl StaticFinancialIndicator
impl StaticFinancialIndicator
Sourcepub fn net_asset(&self) -> i64
pub fn net_asset(&self) -> i64
Returns the value of net_asset, or the default value if net_asset is unset.
Returns the value of net_asset_pershare, or the default value if net_asset_pershare is unset.
Sourcepub fn net_profit_lyr(&self) -> i64
pub fn net_profit_lyr(&self) -> i64
Returns the value of net_profit_lyr, or the default value if net_profit_lyr is unset.
Sourcepub fn net_profit_ttm(&self) -> i64
pub fn net_profit_ttm(&self) -> i64
Returns the value of net_profit_ttm, or the default value if net_profit_ttm is unset.
Trait Implementations§
Source§impl Clone for StaticFinancialIndicator
impl Clone for StaticFinancialIndicator
Source§fn clone(&self) -> StaticFinancialIndicator
fn clone(&self) -> StaticFinancialIndicator
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 StaticFinancialIndicator
impl Debug for StaticFinancialIndicator
Source§impl Default for StaticFinancialIndicator
impl Default for StaticFinancialIndicator
Source§impl Hash for StaticFinancialIndicator
impl Hash for StaticFinancialIndicator
Source§impl Message for StaticFinancialIndicator
impl Message for StaticFinancialIndicator
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 StaticFinancialIndicator
impl PartialEq for StaticFinancialIndicator
impl Copy for StaticFinancialIndicator
impl Eq for StaticFinancialIndicator
impl StructuralPartialEq for StaticFinancialIndicator
Auto Trait Implementations§
impl Freeze for StaticFinancialIndicator
impl RefUnwindSafe for StaticFinancialIndicator
impl Send for StaticFinancialIndicator
impl Sync for StaticFinancialIndicator
impl Unpin for StaticFinancialIndicator
impl UnsafeUnpin for StaticFinancialIndicator
impl UnwindSafe for StaticFinancialIndicator
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.