pub enum PackagedArtifactTargetThresholdState {
Draft,
ProductionReady,
}Expand description
Release-state for the packaged-artifact target thresholds.
Variants§
Draft
Calibrated fit envelope is recorded, but production thresholds are not yet release-ready.
ProductionReady
Production thresholds have been finalized for the current profile.
Implementations§
Source§impl PackagedArtifactTargetThresholdState
impl PackagedArtifactTargetThresholdState
Sourcepub const fn label(self) -> &'static str
pub const fn label(self) -> &'static str
Returns the compact label used in release-facing summaries.
Sourcepub fn summary_line(self) -> String
pub fn summary_line(self) -> String
Returns a compact human-readable line for the target-threshold state.
Sourcepub const fn is_production_ready(self) -> bool
pub const fn is_production_ready(self) -> bool
Returns whether the target thresholds are finalized for production release.
Sourcepub fn validate_production_ready(
self,
) -> Result<(), PackagedArtifactTargetThresholdStateValidationError>
pub fn validate_production_ready( self, ) -> Result<(), PackagedArtifactTargetThresholdStateValidationError>
Returns Ok(()) when the state is release-ready.
Sourcepub fn validated_summary_line(
self,
) -> Result<String, PackagedArtifactTargetThresholdStateValidationError>
pub fn validated_summary_line( self, ) -> Result<String, PackagedArtifactTargetThresholdStateValidationError>
Returns the validated target-threshold state as a compact human-readable line.
Trait Implementations§
impl Copy for PackagedArtifactTargetThresholdState
impl Eq for PackagedArtifactTargetThresholdState
impl StructuralPartialEq for PackagedArtifactTargetThresholdState
Auto Trait Implementations§
impl Freeze for PackagedArtifactTargetThresholdState
impl RefUnwindSafe for PackagedArtifactTargetThresholdState
impl Send for PackagedArtifactTargetThresholdState
impl Sync for PackagedArtifactTargetThresholdState
impl Unpin for PackagedArtifactTargetThresholdState
impl UnsafeUnpin for PackagedArtifactTargetThresholdState
impl UnwindSafe for PackagedArtifactTargetThresholdState
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