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§
Source§impl Clone for PackagedArtifactTargetThresholdState
impl Clone for PackagedArtifactTargetThresholdState
Source§fn clone(&self) -> PackagedArtifactTargetThresholdState
fn clone(&self) -> PackagedArtifactTargetThresholdState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PackagedArtifactTargetThresholdState
impl Eq for PackagedArtifactTargetThresholdState
Source§impl PartialEq for PackagedArtifactTargetThresholdState
impl PartialEq for PackagedArtifactTargetThresholdState
Source§fn eq(&self, other: &PackagedArtifactTargetThresholdState) -> bool
fn eq(&self, other: &PackagedArtifactTargetThresholdState) -> bool
Tests for
self and other values to be equal, and is used by ==.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