pub struct LifecycleThresholds {Show 15 fields
pub promote_draft_uses: u64,
pub promote_emerging_uses: u64,
pub promote_emerging_success_rate: f64,
pub promote_emerging_age_days: i64,
pub promote_stable_uses: u64,
pub promote_stable_success_rate: f64,
pub promote_stable_age_days: i64,
pub demote_emerging_uses: u64,
pub demote_emerging_success_rate: f64,
pub demote_stable_uses: u64,
pub demote_stable_success_rate: f64,
pub deprecated_success_rate: f64,
pub deprecated_no_success_days: i64,
pub auto_archive_confidence: f64,
pub auto_archive_age_days: i64,
}Expand description
Runtime-immutable lifecycle thresholds, derived from SkillLifecycleConfig.
Created once per sweep and threaded through to next_state. The Default
impl mirrors the compile-time constants below so callers that don’t have
access to config (e.g. the doctor’s read-only preview) continue to work
without any config file.
Fields§
§promote_draft_uses: u64§promote_emerging_uses: u64§promote_emerging_success_rate: f64§promote_emerging_age_days: i64§promote_stable_uses: u64§promote_stable_success_rate: f64§promote_stable_age_days: i64§demote_emerging_uses: u64§demote_emerging_success_rate: f64§demote_stable_uses: u64§demote_stable_success_rate: f64§deprecated_success_rate: f64§deprecated_no_success_days: i64§auto_archive_confidence: f64§auto_archive_age_days: i64Trait Implementations§
Source§impl Clone for LifecycleThresholds
impl Clone for LifecycleThresholds
Source§fn clone(&self) -> LifecycleThresholds
fn clone(&self) -> LifecycleThresholds
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 moreSource§impl Debug for LifecycleThresholds
impl Debug for LifecycleThresholds
Source§impl Default for LifecycleThresholds
impl Default for LifecycleThresholds
Source§impl From<&SkillLifecycleConfig> for LifecycleThresholds
impl From<&SkillLifecycleConfig> for LifecycleThresholds
Source§fn from(c: &SkillLifecycleConfig) -> Self
fn from(c: &SkillLifecycleConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LifecycleThresholds
impl RefUnwindSafe for LifecycleThresholds
impl Send for LifecycleThresholds
impl Sync for LifecycleThresholds
impl Unpin for LifecycleThresholds
impl UnsafeUnpin for LifecycleThresholds
impl UnwindSafe for LifecycleThresholds
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