#[repr(i32)]pub enum SecurityStatus {
Show 22 variants
Unknown = 0,
Normal = 1,
Listing = 2,
Purchasing = 3,
Subscribing = 4,
BeforeDrakTradeOpening = 5,
DrakTrading = 6,
DrakTradeEnd = 7,
ToBeOpen = 8,
Suspended = 9,
Called = 10,
ExpiredLastTradingDate = 11,
Expired = 12,
Delisted = 13,
ChangeToTemporaryCode = 14,
TemporaryCodeTradeEnd = 15,
ChangedPlateTradeEnd = 16,
ChangedCodeTradeEnd = 17,
RecoverableCircuitBreaker = 18,
UnRecoverableCircuitBreaker = 19,
AfterCombination = 20,
AfterTransation = 21,
}Variants§
Unknown = 0
未知
Normal = 1
正常状态
Listing = 2
待上市
Purchasing = 3
申购中
Subscribing = 4
认购中
BeforeDrakTradeOpening = 5
暗盘开盘前
DrakTrading = 6
暗盘交易中
DrakTradeEnd = 7
暗盘已收盘
ToBeOpen = 8
待开盘
Suspended = 9
停牌
Called = 10
已收回
ExpiredLastTradingDate = 11
已过最后交易日
Expired = 12
已过期
Delisted = 13
已退市
ChangeToTemporaryCode = 14
公司行动中,交易关闭,转至临时代码交易
TemporaryCodeTradeEnd = 15
临时买卖结束,交易关闭
ChangedPlateTradeEnd = 16
已转板,旧代码交易关闭
ChangedCodeTradeEnd = 17
已换代码,旧代码交易关闭
RecoverableCircuitBreaker = 18
可恢复性熔断
UnRecoverableCircuitBreaker = 19
不可恢复性熔断
AfterCombination = 20
盘后撮合
AfterTransation = 21
盘后交易
Implementations§
Source§impl SecurityStatus
impl SecurityStatus
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 SecurityStatus
impl Clone for SecurityStatus
Source§fn clone(&self) -> SecurityStatus
fn clone(&self) -> SecurityStatus
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 SecurityStatus
impl Debug for SecurityStatus
Source§impl Default for SecurityStatus
impl Default for SecurityStatus
Source§fn default() -> SecurityStatus
fn default() -> SecurityStatus
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SecurityStatus
impl<'de> Deserialize<'de> for SecurityStatus
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<SecurityStatus> for i32
impl From<SecurityStatus> for i32
Source§fn from(value: SecurityStatus) -> i32
fn from(value: SecurityStatus) -> i32
Converts to this type from the input type.
Source§impl Hash for SecurityStatus
impl Hash for SecurityStatus
Source§impl Ord for SecurityStatus
impl Ord for SecurityStatus
Source§fn cmp(&self, other: &SecurityStatus) -> Ordering
fn cmp(&self, other: &SecurityStatus) -> 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 SecurityStatus
impl PartialEq for SecurityStatus
Source§impl PartialOrd for SecurityStatus
impl PartialOrd for SecurityStatus
Source§impl Serialize for SecurityStatus
impl Serialize for SecurityStatus
Source§impl TryFrom<i32> for SecurityStatus
impl TryFrom<i32> for SecurityStatus
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<SecurityStatus, UnknownEnumValue>
fn try_from(value: i32) -> Result<SecurityStatus, UnknownEnumValue>
Performs the conversion.
impl Copy for SecurityStatus
impl Eq for SecurityStatus
impl StructuralPartialEq for SecurityStatus
Auto Trait Implementations§
impl Freeze for SecurityStatus
impl RefUnwindSafe for SecurityStatus
impl Send for SecurityStatus
impl Sync for SecurityStatus
impl Unpin for SecurityStatus
impl UnwindSafe for SecurityStatus
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