Skip to main content

S2c

Struct S2c 

Source
pub struct S2c {
Show 15 fields pub institution_name: Option<String>, pub description: Option<String>, pub position_value: Option<f64>, pub last_position_value: Option<f64>, pub position_value_change_pct: Option<f64>, pub total_holding_count: Option<i64>, pub holding_change_count: Option<i64>, pub new_count: Option<i32>, pub sold_out_count: Option<i32>, pub increase_count: Option<i32>, pub decrease_count: Option<i32>, pub top10_pct: Option<f64>, pub top10_pct_change: Option<f64>, pub disclosure_date: Option<String>, pub currency: Option<String>,
}

Fields§

§institution_name: Option<String>

机构名称

§description: Option<String>

机构简介

§position_value: Option<f64>

持仓市值

§last_position_value: Option<f64>

上期持仓市值

§position_value_change_pct: Option<f64>

市值变化比例(%)

§total_holding_count: Option<i64>

总持仓数

§holding_change_count: Option<i64>

持仓变动数

§new_count: Option<i32>

建仓标的数

§sold_out_count: Option<i32>

清仓标的数

§increase_count: Option<i32>

增持标的数

§decrease_count: Option<i32>

减持标的数

§top10_pct: Option<f64>

Top10持股占比(%)

§top10_pct_change: Option<f64>

Top10占比变动(%)

§disclosure_date: Option<String>

披露日期(yyyy-MM-dd)

§currency: Option<String>

币种

Implementations§

Source§

impl S2c

Source

pub fn institution_name(&self) -> &str

Returns the value of institution_name, or the default value if institution_name is unset.

Source

pub fn description(&self) -> &str

Returns the value of description, or the default value if description is unset.

Source

pub fn position_value(&self) -> f64

Returns the value of position_value, or the default value if position_value is unset.

Source

pub fn last_position_value(&self) -> f64

Returns the value of last_position_value, or the default value if last_position_value is unset.

Source

pub fn position_value_change_pct(&self) -> f64

Returns the value of position_value_change_pct, or the default value if position_value_change_pct is unset.

Source

pub fn total_holding_count(&self) -> i64

Returns the value of total_holding_count, or the default value if total_holding_count is unset.

Source

pub fn holding_change_count(&self) -> i64

Returns the value of holding_change_count, or the default value if holding_change_count is unset.

Source

pub fn new_count(&self) -> i32

Returns the value of new_count, or the default value if new_count is unset.

Source

pub fn sold_out_count(&self) -> i32

Returns the value of sold_out_count, or the default value if sold_out_count is unset.

Source

pub fn increase_count(&self) -> i32

Returns the value of increase_count, or the default value if increase_count is unset.

Source

pub fn decrease_count(&self) -> i32

Returns the value of decrease_count, or the default value if decrease_count is unset.

Source

pub fn top10_pct(&self) -> f64

Returns the value of top10_pct, or the default value if top10_pct is unset.

Source

pub fn top10_pct_change(&self) -> f64

Returns the value of top10_pct_change, or the default value if top10_pct_change is unset.

Source

pub fn disclosure_date(&self) -> &str

Returns the value of disclosure_date, or the default value if disclosure_date is unset.

Source

pub fn currency(&self) -> &str

Returns the value of currency, or the default value if currency is unset.

Trait Implementations§

Source§

impl Clone for S2c

Source§

fn clone(&self) -> S2c

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for S2c

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for S2c

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for S2c
where S2c: Default,

Source§

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 S2c

Source§

fn encoded_len(&self) -> usize

Returns the encoded length of the message without a length delimiter.
Source§

fn clear(&mut self)

Clears the message, resetting all fields to their default.
Source§

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,

Encodes the message to a newly allocated buffer.
Source§

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,

Encodes the message with a length-delimiter to a newly allocated buffer.
Source§

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,

Decodes a length-delimited instance of the message from the buffer.
Source§

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 more
Source§

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 S2c

Source§

fn eq(&self, other: &S2c) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for S2c

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for S2c

Auto Trait Implementations§

§

impl Freeze for S2c

§

impl RefUnwindSafe for S2c

§

impl Send for S2c

§

impl Sync for S2c

§

impl Unpin for S2c

§

impl UnsafeUnpin for S2c

§

impl UnwindSafe for S2c

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,