#[repr(i32)]pub enum SpoolHoldLifecycle {
Unspecified = 0,
ExplicitSupersession = 1,
AutoClearOnResubmit = 2,
}Expand description
Inheritable HOLD-verdict lifecycle policy (weft#481). A state’s effective
lifecycle is the nearest ancestor spool that sets this explicitly (walking
parent_spool_id up); absence (UNSPECIFIED) inherits, and the built-in
root default is EXPLICIT_SUPERSESSION — so existing spools get the safe
behavior with no settings-value migration.
Variants§
Unspecified = 0
inherit; root default = EXPLICIT_SUPERSESSION
ExplicitSupersession = 1
AutoClearOnResubmit = 2
Implementations§
Source§impl SpoolHoldLifecycle
impl SpoolHoldLifecycle
Sourcepub const fn is_valid(value: i32) -> bool
pub const fn is_valid(value: i32) -> bool
Returns true if value is a variant of SpoolHoldLifecycle.
Sourcepub fn from_i32(value: i32) -> Option<SpoolHoldLifecycle>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<SpoolHoldLifecycle>
Use the TryFrom<i32> implementation instead
Converts an i32 to a SpoolHoldLifecycle, or None if value is not a valid variant.
Source§impl SpoolHoldLifecycle
impl SpoolHoldLifecycle
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 SpoolHoldLifecycle
impl Clone for SpoolHoldLifecycle
Source§fn clone(&self) -> SpoolHoldLifecycle
fn clone(&self) -> SpoolHoldLifecycle
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more