pub enum Status {
SUBMITTING,
NOTTRADED,
PARTTRADED,
ALLTRADED,
CANCELLED,
REJECTED,
UNKNOWN,
}Expand description
订单状态(constant.py:30);活跃态判定见 ACTIVE_STATUSES。
UNKNOWN(0.3.0,边界零丢弃):网关收到无法翻译的柜台状态码时填它,
不上岸为任何已知状态(替柜台猜“是不是在途“就是在封装层做决策)。
刻意不进 ACTIVE_STATUSES:在途判定是在途/撤单策略的业务决策,
归 ek-oms;网关只负责如实说“这个状态我不认识“。
Variants§
Implementations§
Trait Implementations§
impl Copy for Status
impl Eq for Status
impl StructuralPartialEq for Status
Auto Trait Implementations§
impl Freeze for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnsafeUnpin for Status
impl UnwindSafe for Status
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