#[repr(i32)]pub enum MixedState {
MsNone = 0,
MsApply = 1,
MsOpening = 2,
MsNormal = 3,
MsTrdForbid = 4,
MsLgnForbid = 5,
MsNotOpen = 6,
MsRdsNeeded = 7,
}Expand description
混合状态
Variants§
MsNone = 0
未开户
MsApply = 1
请求开户
MsOpening = 2
即将开通
MsNormal = 3
正常(已开户)
MsTrdForbid = 4
禁止交易
MsLgnForbid = 5
禁止登录
MsNotOpen = 6
交易未开启
MsRdsNeeded = 7
需要风批
Implementations§
Source§impl MixedState
impl MixedState
Source§impl MixedState
impl MixedState
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 MixedState
impl Clone for MixedState
Source§fn clone(&self) -> MixedState
fn clone(&self) -> MixedState
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 MixedState
impl Debug for MixedState
Source§impl Default for MixedState
impl Default for MixedState
Source§fn default() -> MixedState
fn default() -> MixedState
Returns the “default value” for a type. Read more
Source§impl From<MixedState> for i32
impl From<MixedState> for i32
Source§fn from(value: MixedState) -> i32
fn from(value: MixedState) -> i32
Converts to this type from the input type.
Source§impl Hash for MixedState
impl Hash for MixedState
Source§impl Ord for MixedState
impl Ord for MixedState
Source§fn cmp(&self, other: &MixedState) -> Ordering
fn cmp(&self, other: &MixedState) -> 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 MixedState
impl PartialEq for MixedState
Source§impl PartialOrd for MixedState
impl PartialOrd for MixedState
Source§impl TryFrom<i32> for MixedState
impl TryFrom<i32> for MixedState
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<MixedState, UnknownEnumValue>
fn try_from(value: i32) -> Result<MixedState, UnknownEnumValue>
Performs the conversion.
impl Copy for MixedState
impl Eq for MixedState
impl StructuralPartialEq for MixedState
Auto Trait Implementations§
impl Freeze for MixedState
impl RefUnwindSafe for MixedState
impl Send for MixedState
impl Sync for MixedState
impl Unpin for MixedState
impl UnsafeUnpin for MixedState
impl UnwindSafe for MixedState
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.