pub enum PendingState {
Open,
Confirmed,
Completed,
Voided,
}Expand description
待支付单的状态机:Open → Confirmed → Completed,任意时刻可 Voided(过期作废)。
Variants§
Open
待支付:等人确认。
Confirmed
人已确认(④确认行已落);⑤终态行之前的过渡态。
Completed
已完成(⑤终态行 = 完成)。
Voided
已作废(TTL 过期,⑤终态行 = 过期作废)。
Trait Implementations§
Source§impl Clone for PendingState
impl Clone for PendingState
Source§fn clone(&self) -> PendingState
fn clone(&self) -> PendingState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PendingState
Source§impl Debug for PendingState
impl Debug for PendingState
Source§impl<'de> Deserialize<'de> for PendingState
impl<'de> Deserialize<'de> for PendingState
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
impl Eq for PendingState
Source§impl PartialEq for PendingState
impl PartialEq for PendingState
Source§impl Serialize for PendingState
impl Serialize for PendingState
impl StructuralPartialEq for PendingState
Auto Trait Implementations§
impl Freeze for PendingState
impl RefUnwindSafe for PendingState
impl Send for PendingState
impl Sync for PendingState
impl Unpin for PendingState
impl UnsafeUnpin for PendingState
impl UnwindSafe for PendingState
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