#[repr(i32)]pub enum StateStatus {
Unspecified = 0,
Draft = 1,
Published = 2,
Abandoned = 3,
Aborted = 4,
Superseded = 5,
}Expand description
State publication status. Captures whether a state is in-progress
(DRAFT) or pinned as the published shape of the work (PUBLISHED).
The failure/terminal statuses (ABANDONED/ABORTED/SUPERSEDED) are
author/gate-driven (weft#469) and orthogonal to reviewer verdicts —
RecordVerdict never sets them. FAILED is intentionally absent: it is
derivable from verification.tests_failed > 0.
Variants§
Unspecified = 0
Draft = 1
Published = 2
Abandoned = 3
+weft#469: author gave up on the task
Aborted = 4
+weft#469: hard merge-gate/policy killed it
Superseded = 5
+weft#469: replaced by a successor attempt
Implementations§
Source§impl StateStatus
impl StateStatus
Source§impl StateStatus
impl StateStatus
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 StateStatus
impl Clone for StateStatus
Source§fn clone(&self) -> StateStatus
fn clone(&self) -> StateStatus
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more