#[repr(i32)]pub enum TradeMarket {
Show 17 variants
Hk = 1,
Us = 2,
Hkcc = 4,
Futures = 5,
Sg = 6,
Crypto = 7,
Au = 8,
Forex = 9,
Bond = 10,
My = 11,
Ca = 12,
HkFund = 13,
Fund = 14,
Jp = 15,
StructuredNotes = 16,
UsFund = 23,
SgFund = 24,
}Expand description
交易市场,2282/2298接口的enable_market参考该取值
Variants§
Hk = 1
港股股票
Us = 2
美股股票
Hkcc = 4
港股A股通
Futures = 5
期货市场
Sg = 6
新加坡股票
Crypto = 7
数字货币
Au = 8
澳股股票
Forex = 9
杠杆式外汇市场
Bond = 10
债券
My = 11
马股
Ca = 12
加股
HkFund = 13
港币基金
Fund = 14
基金(合并原13,23,24)
Jp = 15
日股
StructuredNotes = 16
结构化票据
UsFund = 23
美元基金
SgFund = 24
新元基金
Implementations§
Source§impl TradeMarket
impl TradeMarket
Source§impl TradeMarket
impl TradeMarket
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 TradeMarket
impl Clone for TradeMarket
Source§fn clone(&self) -> TradeMarket
fn clone(&self) -> TradeMarket
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 TradeMarket
impl Debug for TradeMarket
Source§impl Default for TradeMarket
impl Default for TradeMarket
Source§fn default() -> TradeMarket
fn default() -> TradeMarket
Returns the “default value” for a type. Read more
Source§impl From<TradeMarket> for i32
impl From<TradeMarket> for i32
Source§fn from(value: TradeMarket) -> i32
fn from(value: TradeMarket) -> i32
Converts to this type from the input type.
Source§impl Hash for TradeMarket
impl Hash for TradeMarket
Source§impl Ord for TradeMarket
impl Ord for TradeMarket
Source§fn cmp(&self, other: &TradeMarket) -> Ordering
fn cmp(&self, other: &TradeMarket) -> 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 TradeMarket
impl PartialEq for TradeMarket
Source§impl PartialOrd for TradeMarket
impl PartialOrd for TradeMarket
Source§impl TryFrom<i32> for TradeMarket
impl TryFrom<i32> for TradeMarket
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<TradeMarket, UnknownEnumValue>
fn try_from(value: i32) -> Result<TradeMarket, UnknownEnumValue>
Performs the conversion.
impl Copy for TradeMarket
impl Eq for TradeMarket
impl StructuralPartialEq for TradeMarket
Auto Trait Implementations§
impl Freeze for TradeMarket
impl RefUnwindSafe for TradeMarket
impl Send for TradeMarket
impl Sync for TradeMarket
impl Unpin for TradeMarket
impl UnsafeUnpin for TradeMarket
impl UnwindSafe for TradeMarket
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.