pub struct ArkFundHoldingItem {
pub security: Option<Security>,
pub name: Option<String>,
pub shares: Option<i64>,
pub shares_change: Option<i64>,
pub market_value: Option<f64>,
pub weight: Option<f64>,
pub weight_change: Option<f64>,
}Expand description
ARK基金持仓数据项
Fields§
§security: Option<Security>股票(stock_id有效时)
name: Option<String>名称
持仓数量
持仓数量变动
market_value: Option<f64>持仓市值(美元)
weight: Option<f64>持仓占比(%)
weight_change: Option<f64>持仓占比变动(%)
Implementations§
Source§impl ArkFundHoldingItem
impl ArkFundHoldingItem
Returns the value of shares, or the default value if shares is unset.
Returns the value of shares_change, or the default value if shares_change is unset.
Sourcepub fn market_value(&self) -> f64
pub fn market_value(&self) -> f64
Returns the value of market_value, or the default value if market_value is unset.
Sourcepub fn weight(&self) -> f64
pub fn weight(&self) -> f64
Returns the value of weight, or the default value if weight is unset.
Sourcepub fn weight_change(&self) -> f64
pub fn weight_change(&self) -> f64
Returns the value of weight_change, or the default value if weight_change is unset.
Trait Implementations§
Source§impl Clone for ArkFundHoldingItem
impl Clone for ArkFundHoldingItem
Source§fn clone(&self) -> ArkFundHoldingItem
fn clone(&self) -> ArkFundHoldingItem
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 ArkFundHoldingItem
impl Debug for ArkFundHoldingItem
Source§impl Default for ArkFundHoldingItem
impl Default for ArkFundHoldingItem
Source§impl<'de> Deserialize<'de> for ArkFundHoldingItemwhere
ArkFundHoldingItem: Default,
impl<'de> Deserialize<'de> for ArkFundHoldingItemwhere
ArkFundHoldingItem: 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 ArkFundHoldingItem
impl Message for ArkFundHoldingItem
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 ArkFundHoldingItem
impl PartialEq for ArkFundHoldingItem
Source§impl Serialize for ArkFundHoldingItem
impl Serialize for ArkFundHoldingItem
impl StructuralPartialEq for ArkFundHoldingItem
Auto Trait Implementations§
impl Freeze for ArkFundHoldingItem
impl RefUnwindSafe for ArkFundHoldingItem
impl Send for ArkFundHoldingItem
impl Sync for ArkFundHoldingItem
impl Unpin for ArkFundHoldingItem
impl UnsafeUnpin for ArkFundHoldingItem
impl UnwindSafe for ArkFundHoldingItem
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