pub struct OwnershipStaticItem {
pub name: Option<String>,
pub holder_pct: Option<f64>,
pub holder_id: Option<i32>,
}Fields§
§name: Option<String>持股人/分组名称
holder_pct: Option<f64>持股占比(百分比),如 23.37 表示 23.37%
holder_id: Option<i32>股东 ID;mainHolderInfoList 中有值,其他分组为 0
Implementations§
Source§impl OwnershipStaticItem
impl OwnershipStaticItem
Sourcepub fn holder_pct(&self) -> f64
pub fn holder_pct(&self) -> f64
Returns the value of holder_pct, or the default value if holder_pct is unset.
Trait Implementations§
Source§impl Clone for OwnershipStaticItem
impl Clone for OwnershipStaticItem
Source§fn clone(&self) -> OwnershipStaticItem
fn clone(&self) -> OwnershipStaticItem
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 OwnershipStaticItem
impl Debug for OwnershipStaticItem
Source§impl Default for OwnershipStaticItem
impl Default for OwnershipStaticItem
Source§impl<'de> Deserialize<'de> for OwnershipStaticItemwhere
OwnershipStaticItem: Default,
impl<'de> Deserialize<'de> for OwnershipStaticItemwhere
OwnershipStaticItem: 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 OwnershipStaticItem
impl Message for OwnershipStaticItem
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 OwnershipStaticItem
impl PartialEq for OwnershipStaticItem
Source§impl Serialize for OwnershipStaticItem
impl Serialize for OwnershipStaticItem
impl StructuralPartialEq for OwnershipStaticItem
Auto Trait Implementations§
impl Freeze for OwnershipStaticItem
impl RefUnwindSafe for OwnershipStaticItem
impl Send for OwnershipStaticItem
impl Sync for OwnershipStaticItem
impl Unpin for OwnershipStaticItem
impl UnsafeUnpin for OwnershipStaticItem
impl UnwindSafe for OwnershipStaticItem
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