pub enum LifecycleTransition {
Create,
FillDelta,
Close {
status: TerminalStatus,
},
MetadataOnly,
}Expand description
A state-mutating action the consumer wants to apply to an order.
Variants§
Create
Order was created on-chain.
FillDelta
An incremental fill occurred (partial or full).
Close
Order reached a terminal state.
Fields
§
status: TerminalStatusMetadataOnly
Non-state-mutating update (e.g. diagnostic events, display snapshots). Always accepted, even after the order is terminal.
Trait Implementations§
Source§impl Clone for LifecycleTransition
impl Clone for LifecycleTransition
Source§fn clone(&self) -> LifecycleTransition
fn clone(&self) -> LifecycleTransition
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 LifecycleTransition
impl Debug for LifecycleTransition
Source§impl PartialEq for LifecycleTransition
impl PartialEq for LifecycleTransition
impl Copy for LifecycleTransition
impl Eq for LifecycleTransition
impl StructuralPartialEq for LifecycleTransition
Auto Trait Implementations§
impl Freeze for LifecycleTransition
impl RefUnwindSafe for LifecycleTransition
impl Send for LifecycleTransition
impl Sync for LifecycleTransition
impl Unpin for LifecycleTransition
impl UnsafeUnpin for LifecycleTransition
impl UnwindSafe for LifecycleTransition
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,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more