#[repr(i32)]pub enum MarketId {
HkSec = 0,
UsSec = 1,
ASec = 2,
AConn = 3,
Futures = 4,
}Expand description
市场ID(不用关注,仅2008接口market_id取值参考) 这里的取值和后端的取值不一样,例如港股后端取值为1,这里是0
Variants§
Implementations§
Source§impl MarketId
impl MarketId
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 Ord for MarketId
impl Ord for MarketId
Source§impl PartialOrd for MarketId
impl PartialOrd for MarketId
impl Copy for MarketId
impl Eq for MarketId
impl StructuralPartialEq for MarketId
Auto Trait Implementations§
impl Freeze for MarketId
impl RefUnwindSafe for MarketId
impl Send for MarketId
impl Sync for MarketId
impl Unpin for MarketId
impl UnsafeUnpin for MarketId
impl UnwindSafe for MarketId
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.