pub struct ProductivityConfig {
pub min_productivity_threshold: f64,
pub workday_hours: f64,
pub min_workday_fraction_before_suggest: f64,
}Expand description
Productivity management configuration settings.
Controls the behavior of productivity monitoring, break recommendations, and report validation based on productivity thresholds.
Fields§
§min_productivity_threshold: f64Minimum acceptable productivity percentage.
Productivity below this threshold triggers warnings in reports and prevents report submission until breaks are added to reach the minimum level. Should be set between 70-85% for most users.
workday_hours: f64Expected workday duration in hours.
Used for calculating break recommendations and determining when enough of the workday has passed to suggest productivity improvements. Typical values are 7.5-8.5 hours for standard workdays.
min_workday_fraction_before_suggest: f64Fraction of workday that must pass before suggesting breaks.
Productivity warnings and break suggestions are only shown after this portion of the expected workday has elapsed. This prevents premature suggestions during normal workday startup. Typical value: 0.5 (50% of workday)
Trait Implementations§
Source§impl Clone for ProductivityConfig
impl Clone for ProductivityConfig
Source§fn clone(&self) -> ProductivityConfig
fn clone(&self) -> ProductivityConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ProductivityConfig
impl Debug for ProductivityConfig
Source§impl Default for ProductivityConfig
impl Default for ProductivityConfig
Source§fn default() -> Self
fn default() -> Self
Provides sensible defaults for productivity configuration.
These defaults are based on common productivity management practices and provide a good starting point for most users. Values can be adjusted through configuration to match individual work styles.
§Default Values Rationale
- 75% minimum productivity: Reasonable threshold allowing for breaks
- 8 hours workday: Standard full-time work expectation
- 50% workday fraction: Wait until mid-day before warning on productivity