pub enum PackagedArtifactGenerationPolicy {
AdjacentSameBodyQuadraticWindows,
}Expand description
Structured generation policy for the packaged artifact.
Variants§
AdjacentSameBodyQuadraticWindows
Same-body source epochs are fit with adjacent quadratic windows.
Implementations§
Source§impl PackagedArtifactGenerationPolicy
impl PackagedArtifactGenerationPolicy
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 note(self) -> &'static str
pub fn note(self) -> &'static str
Returns the explanatory note used in release-facing summaries.
Sourcepub fn segment_strategy(self) -> &'static str
pub fn segment_strategy(self) -> &'static str
Returns the segment-strategy text used in release-facing summaries.
Sourcepub fn summary_line(self) -> String
pub fn summary_line(self) -> String
Returns the compact release-facing summary for the generation policy.
Sourcepub fn validate(
self,
) -> Result<(), PackagedArtifactGenerationPolicyValidationError>
pub fn validate( self, ) -> Result<(), PackagedArtifactGenerationPolicyValidationError>
Returns Ok(()) when the generation policy still matches the current packaged-artifact posture.
Trait Implementations§
impl Copy for PackagedArtifactGenerationPolicy
impl Eq for PackagedArtifactGenerationPolicy
impl StructuralPartialEq for PackagedArtifactGenerationPolicy
Auto Trait Implementations§
impl Freeze for PackagedArtifactGenerationPolicy
impl RefUnwindSafe for PackagedArtifactGenerationPolicy
impl Send for PackagedArtifactGenerationPolicy
impl Sync for PackagedArtifactGenerationPolicy
impl Unpin for PackagedArtifactGenerationPolicy
impl UnsafeUnpin for PackagedArtifactGenerationPolicy
impl UnwindSafe for PackagedArtifactGenerationPolicy
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