pub struct ConstituentStock {Show 15 fields
pub symbol: String,
pub name: String,
pub last_done: Option<Decimal>,
pub prev_close: Option<Decimal>,
pub inflow: Option<Decimal>,
pub balance: Option<Decimal>,
pub amount: Option<Decimal>,
pub total_shares: Option<Decimal>,
pub tags: Vec<String>,
pub intro: String,
pub market: String,
pub circulating_shares: Option<Decimal>,
pub delay: bool,
pub chg: Option<Decimal>,
pub trade_status: i32,
}Expand description
One constituent stock of an index
Fields§
§symbol: StringSecurity symbol
name: StringSecurity name
last_done: Option<Decimal>Latest price
prev_close: Option<Decimal>Previous close
inflow: Option<Decimal>Net capital inflow today
balance: Option<Decimal>Turnover amount
amount: Option<Decimal>Trading volume (shares)
Total shares outstanding
Tags, e.g. ["领涨龙头"]
intro: StringBrief description
market: StringMarket, e.g. "HK"
Circulating shares
delay: boolWhether this is a delayed quote
chg: Option<Decimal>Day change percentage
trade_status: i32Raw trade status code
Trait Implementations§
Source§impl Clone for ConstituentStock
impl Clone for ConstituentStock
Source§fn clone(&self) -> ConstituentStock
fn clone(&self) -> ConstituentStock
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 ConstituentStock
impl Debug for ConstituentStock
Source§impl<'de> Deserialize<'de> for ConstituentStock
impl<'de> Deserialize<'de> for ConstituentStock
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
Auto Trait Implementations§
impl Freeze for ConstituentStock
impl RefUnwindSafe for ConstituentStock
impl Send for ConstituentStock
impl Sync for ConstituentStock
impl Unpin for ConstituentStock
impl UnsafeUnpin for ConstituentStock
impl UnwindSafe for ConstituentStock
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more