Struct longport::quote::SecurityStaticInfo
source · pub struct SecurityStaticInfo {Show 16 fields
pub symbol: String,
pub name_cn: String,
pub name_en: String,
pub name_hk: String,
pub exchange: String,
pub currency: String,
pub lot_size: i32,
pub total_shares: i64,
pub circulating_shares: i64,
pub hk_shares: i64,
pub eps: Decimal,
pub eps_ttm: Decimal,
pub bps: Decimal,
pub dividend_yield: Decimal,
pub stock_derivatives: DerivativeType,
pub board: SecurityBoard,
}
Expand description
The basic information of securities
Fields§
§symbol: String
Security code
name_cn: String
Security name (zh-CN)
name_en: String
Security name (en)
name_hk: String
Security name (zh-HK)
exchange: String
Exchange which the security belongs to
currency: String
Trading currency
lot_size: i32
Lot size
Total shares
Circulating shares
HK shares (only HK stocks)
eps: Decimal
Earnings per share
eps_ttm: Decimal
Earnings per share (TTM)
bps: Decimal
Net assets per share
dividend_yield: Decimal
Dividend yield
stock_derivatives: DerivativeType
Types of supported derivatives
board: SecurityBoard
Board
Trait Implementations§
source§impl Debug for SecurityStaticInfo
impl Debug for SecurityStaticInfo
Auto Trait Implementations§
impl Freeze for SecurityStaticInfo
impl RefUnwindSafe for SecurityStaticInfo
impl Send for SecurityStaticInfo
impl Sync for SecurityStaticInfo
impl Unpin for SecurityStaticInfo
impl UnwindSafe for SecurityStaticInfo
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
§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