#[repr(i32)]pub enum TrdSecMarket {
Unknown = 0,
Hk = 1,
Us = 2,
CnSh = 31,
CnSz = 32,
Sg = 41,
Jp = 51,
Au = 61,
My = 71,
Ca = 81,
Fx = 91,
}Expand description
可交易证券所属市场,目前主要是区分A股的沪市和深市,香港和美国暂不需要细分
Variants§
Unknown = 0
未知市场
Hk = 1
香港市场(股票、窝轮、牛熊、期权、期货等)
Us = 2
美国市场(股票、期权、期货等)
CnSh = 31
沪股市场(股票)
CnSz = 32
深股市场(股票)
Sg = 41
新加坡市场(期货)
Jp = 51
日本市场(期货)
Au = 61
澳大利亚
My = 71
马来西亚
Ca = 81
加拿大
Fx = 91
外汇
Implementations§
Source§impl TrdSecMarket
impl TrdSecMarket
Source§impl TrdSecMarket
impl TrdSecMarket
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for TrdSecMarket
impl Clone for TrdSecMarket
Source§fn clone(&self) -> TrdSecMarket
fn clone(&self) -> TrdSecMarket
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 TrdSecMarket
impl Debug for TrdSecMarket
Source§impl Default for TrdSecMarket
impl Default for TrdSecMarket
Source§fn default() -> TrdSecMarket
fn default() -> TrdSecMarket
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TrdSecMarket
impl<'de> Deserialize<'de> for TrdSecMarket
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 From<TrdSecMarket> for i32
impl From<TrdSecMarket> for i32
Source§fn from(value: TrdSecMarket) -> i32
fn from(value: TrdSecMarket) -> i32
Converts to this type from the input type.
Source§impl Hash for TrdSecMarket
impl Hash for TrdSecMarket
Source§impl Ord for TrdSecMarket
impl Ord for TrdSecMarket
Source§fn cmp(&self, other: &TrdSecMarket) -> Ordering
fn cmp(&self, other: &TrdSecMarket) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TrdSecMarket
impl PartialEq for TrdSecMarket
Source§impl PartialOrd for TrdSecMarket
impl PartialOrd for TrdSecMarket
Source§impl Serialize for TrdSecMarket
impl Serialize for TrdSecMarket
Source§impl TryFrom<i32> for TrdSecMarket
impl TryFrom<i32> for TrdSecMarket
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<TrdSecMarket, UnknownEnumValue>
fn try_from(value: i32) -> Result<TrdSecMarket, UnknownEnumValue>
Performs the conversion.
impl Copy for TrdSecMarket
impl Eq for TrdSecMarket
impl StructuralPartialEq for TrdSecMarket
Auto Trait Implementations§
impl Freeze for TrdSecMarket
impl RefUnwindSafe for TrdSecMarket
impl Send for TrdSecMarket
impl Sync for TrdSecMarket
impl Unpin for TrdSecMarket
impl UnwindSafe for TrdSecMarket
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