#[repr(i32)]pub enum CryptoOrderStatus {
COrderStatusUnspecified = 0,
COrderStatusProcessing = 1,
COrderStatusPending = 2,
COrderStatusPartial = 3,
COrderStatusDone = 4,
COrderStatusCanceled = 5,
COrderStatusRejected = 6,
COrderStatusPartialAndCancel = 7,
COrderStatusInvalid = 101,
COrderStatusPendingSubmissing = 102,
COrderStatusDoneButCancelled = 103,
COrderStatusDeleted = 104,
}Expand description
订单状态(客户端/ROA展示用)
Variants§
COrderStatusUnspecified = 0
COrderStatusProcessing = 1
交易svr处理中(提交中)
COrderStatusPending = 2
已提交,等待成交
COrderStatusPartial = 3
部分成交
COrderStatusDone = 4
完全成交
COrderStatusCanceled = 5
订单被撤销,无成交
COrderStatusRejected = 6
订单被拒绝(下单失败,服务拒绝)
COrderStatusPartialAndCancel = 7
部分成交后,剩余部分被撤销
COrderStatusInvalid = 101
超过有效期(已失效)
COrderStatusPendingSubmissing = 102
等待提交至上游
COrderStatusDoneButCancelled = 103
订单成交后被上游回滚撤销(成交被撤销)
COrderStatusDeleted = 104
客户端删除订单,不展示
Implementations§
Source§impl CryptoOrderStatus
impl CryptoOrderStatus
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 CryptoOrderStatus
impl Clone for CryptoOrderStatus
Source§fn clone(&self) -> CryptoOrderStatus
fn clone(&self) -> CryptoOrderStatus
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 CryptoOrderStatus
impl Debug for CryptoOrderStatus
Source§impl Default for CryptoOrderStatus
impl Default for CryptoOrderStatus
Source§fn default() -> CryptoOrderStatus
fn default() -> CryptoOrderStatus
Returns the “default value” for a type. Read more
Source§impl From<CryptoOrderStatus> for i32
impl From<CryptoOrderStatus> for i32
Source§fn from(value: CryptoOrderStatus) -> i32
fn from(value: CryptoOrderStatus) -> i32
Converts to this type from the input type.
Source§impl Hash for CryptoOrderStatus
impl Hash for CryptoOrderStatus
Source§impl Ord for CryptoOrderStatus
impl Ord for CryptoOrderStatus
Source§fn cmp(&self, other: &CryptoOrderStatus) -> Ordering
fn cmp(&self, other: &CryptoOrderStatus) -> 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 CryptoOrderStatus
impl PartialEq for CryptoOrderStatus
Source§impl PartialOrd for CryptoOrderStatus
impl PartialOrd for CryptoOrderStatus
Source§impl TryFrom<i32> for CryptoOrderStatus
impl TryFrom<i32> for CryptoOrderStatus
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<CryptoOrderStatus, UnknownEnumValue>
fn try_from(value: i32) -> Result<CryptoOrderStatus, UnknownEnumValue>
Performs the conversion.
impl Copy for CryptoOrderStatus
impl Eq for CryptoOrderStatus
impl StructuralPartialEq for CryptoOrderStatus
Auto Trait Implementations§
impl Freeze for CryptoOrderStatus
impl RefUnwindSafe for CryptoOrderStatus
impl Send for CryptoOrderStatus
impl Sync for CryptoOrderStatus
impl Unpin for CryptoOrderStatus
impl UnsafeUnpin for CryptoOrderStatus
impl UnwindSafe for CryptoOrderStatus
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.