pub enum WorkStatus {
Proposed,
Planned,
Claimed,
InProgress,
Blocked,
Submitted,
Verified,
Done,
}Expand description
Authoritative lifecycle for tasks; aggregate completion is a query projection.
Variants§
Proposed
Work not yet approved for execution.
Planned
Approved work eligible for readiness evaluation.
Claimed
Work reserved by its owner.
InProgress
Work being performed by its owner.
Blocked
Work suspended with a reason.
Submitted
Owner reports completion and requests independent verification.
Verified
Independent verification succeeded.
Done
Finalized completed work.
Implementations§
Source§impl WorkStatus
impl WorkStatus
Sourcepub fn satisfies_dependency(self) -> bool
pub fn satisfies_dependency(self) -> bool
Whether a task has passed verification.
Sourcepub fn is_terminal(self) -> bool
pub fn is_terminal(self) -> bool
Whether a task has completed execution.
Trait Implementations§
Source§impl Clone for WorkStatus
impl Clone for WorkStatus
impl Copy for WorkStatus
Source§impl Debug for WorkStatus
impl Debug for WorkStatus
Source§impl Default for WorkStatus
impl Default for WorkStatus
Source§impl<'de> Deserialize<'de> for WorkStatus
impl<'de> Deserialize<'de> for WorkStatus
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 WorkStatus
Source§impl PartialEq for WorkStatus
impl PartialEq for WorkStatus
Source§impl Serialize for WorkStatus
impl Serialize for WorkStatus
impl StructuralPartialEq for WorkStatus
Auto Trait Implementations§
impl Freeze for WorkStatus
impl RefUnwindSafe for WorkStatus
impl Send for WorkStatus
impl Sync for WorkStatus
impl Unpin for WorkStatus
impl UnsafeUnpin for WorkStatus
impl UnwindSafe for WorkStatus
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