pub enum HealthIndicator {
Insufficient,
Good,
Watch,
Concern,
}Expand description
Coarse-grained classification used across the health / burnout
indicator family. The same three-step palette applies whether the
subject is a project, a user, or (in the future) a team —
callers reuse this enum and its HealthIndicator::badge_class
method instead of inventing parallel ones.
The semantics are deliberately fuzzy: “Watch” means “worth a
glance, may or may not be a problem”; “Concern” means “human
attention warranted”. Concrete thresholds live with each specific
indicator (e.g. project_health::classify_staleness).
Variants§
Insufficient
Not enough data to classify. Renders as a muted “—”.
Good
Healthy / on-track.
Watch
Worth a glance. Borderline.
Concern
Human attention warranted.
Implementations§
Source§impl HealthIndicator
impl HealthIndicator
Sourcepub fn badge_class(&self) -> &'static str
pub fn badge_class(&self) -> &'static str
daisyUI badge class for rendering. The palette matches
WorkloadState::badge_class so the two indicator families
look visually coherent on the same page.
Trait Implementations§
Source§impl Clone for HealthIndicator
impl Clone for HealthIndicator
Source§fn clone(&self) -> HealthIndicator
fn clone(&self) -> HealthIndicator
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for HealthIndicator
Source§impl Debug for HealthIndicator
impl Debug for HealthIndicator
impl Eq for HealthIndicator
Source§impl PartialEq for HealthIndicator
impl PartialEq for HealthIndicator
Source§fn eq(&self, other: &HealthIndicator) -> bool
fn eq(&self, other: &HealthIndicator) -> bool
self and other values to be equal, and is used by ==.